Skip to content

Commit

Permalink
chore: small linting things in js
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed Jun 18, 2024
1 parent 1990568 commit f98153b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions js/packages/quary-extension-bus/src/callBacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ export const useCallBackBackEnd = <T extends keyof Callbacks>(
const callback = callbacks[type as T]
if (callback) {
await callback(payload as Callbacks[T], setState, panel)
} else {
throw new Error(`Unknown command ${type}`)
}
throw new Error(`Unknown command ${type}`)
}
},
undefined,
Expand Down
2 changes: 1 addition & 1 deletion js/packages/quary-extension-bus/src/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function Err(error: QuaryError): Err<QuaryError> {
return { ok: false, error }
}

export function isOk<T>(result: ResultE<T, any>): result is Ok<T>
export function isOk<T, E>(result: ResultE<T, E>): result is Ok<T>
export function isOk<T>(result: Result<T>): result is Ok<T> {
return result.ok
}
Expand Down
2 changes: 1 addition & 1 deletion js/packages/quary-extension-bus/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function transpose<T>(matrix: T[][]): T[][] {
return []
}
const cols = matrix[0].length
let newMatrix: T[][] = Array.from({ length: cols }, () =>
const newMatrix: T[][] = Array.from({ length: cols }, () =>
Array.from({ length: rows }),
)

Expand Down

0 comments on commit f98153b

Please sign in to comment.