Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eedbe9d

Browse files
added types
1 parent 9e70ec9 commit eedbe9d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

‎examples/fe-example-react/src/main.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
1515
<ConvoStackWidget
1616
graphqlUrl="http://localhost:3033/graphql"
1717
websocketUrl="ws://localhost:3033/graphql"
18-
workspaceId="cligostis00091hrgsu93o218"
18+
workspaceId="clijh54bz0009wud1v4yhrt8o"
1919
userData={{
20-
email: "m@ggg.com",
20+
email: "m@sdfgfsdgg.com",
2121
name: "zxx",
2222
hash: "z420",
23-
userId: "mmmm",
23+
userId: "mmsxsddfmm",
2424
}}
2525
customStyling={{
2626
headerText: "My Custom Header",

‎examples/fe-example-react/tsconfig.tsbuildinfo‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎packages/convostack-frontend-react/src/api/apiClient.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ export const createApiClient = () => {
5959
})
6060
}
6161
const workspaceId = store.getState().conversation.workspaceId;
62-
const headers = {
62+
const headers: Record<string,string> = {
6363
Authorization: `Bearer ${accessToken}`,
64-
}asany;
64+
}
6565
if (workspaceId) {
6666
headers["X-Workspace-Id"] = workspaceId
6767
}
@@ -89,9 +89,9 @@ export const createWsClient = () => {
8989
accessToken = store.getState().conversation.accessToken;
9090
})
9191
}
92-
const params = {
92+
const params: Record<string,string> = {
9393
Authorization: `Bearer ${accessToken}`,
94-
}asany
94+
}
9595
if (workspaceId) {
9696
params["X-Workspace-Id"] = workspaceId
9797
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /