Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arashsheyda committed Jul 9, 2023
1 parent 9c0e0ba commit 0cdba0d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
dist
node_modules
docs
.github
.vscode
1 change: 1 addition & 0 deletions client/composables/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const wsError = ref<any>()
export const wsConnectingDebounced = useDebounce(wsConnecting, 2000)

const connectPromise = connectVite()
// eslint-disable-next-line @typescript-eslint/ban-types
let onMessage: Function = () => {}

export const clientFunctions = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
"splitpanes": "^3.1.5",
"vitest": "^0.33.0"
}
}
}
2 changes: 1 addition & 1 deletion src/types/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface ClientFunctions {

export interface Collection {
name: string
fields?: {}[]
fields?: object[]
}

export interface Resource {
Expand Down
2 changes: 1 addition & 1 deletion src/types/server-ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export interface NuxtDevtoolsServerContext {

refresh: (event: keyof ServerFunctions) => void

extendServerRpc: <ClientFunctions = {}, ServerFunctions = {}>(name: string, functions: ServerFunctions) => BirpcGroup<ClientFunctions, ServerFunctions>
extendServerRpc: <ClientFunctions = object, ServerFunctions = object>(name: string, functions: ServerFunctions) => BirpcGroup<ClientFunctions, ServerFunctions>
}

0 comments on commit 0cdba0d

Please sign in to comment.