Fix type assertions #166
Annotations
6 errors and 1 warning
build:
src/utils/limiter.ts#L29
Type '((value: T | PromiseLike<T>) => void) | ((value: T) => void)' is not assignable to type '(result?: T | PromiseLike<T> | undefined) => void'.
|
build:
src/utils/state.ts#L48
Expected 0 type arguments, but got 1.
|
build:
src/utils/state.ts#L75
Type 'Cancellable<{ query: InputSearchQueryWithFields; response: SearchResult; }>' is not assignable to type 'Cancellable<State>'.
|
build:
src/utils/state.ts#L75
Argument of type 'PromiseLike<{ query: InputSearchQueryWithFields; response: SearchResult; }> | PromiseLike<State>' is not assignable to parameter of type 'PromiseLike<{ query: InputSearchQueryWithFields; response: SearchResult; }>'.
|
build:
src/utils/state.ts#L76
'cancellable' is possibly 'undefined'.
|
build
Process completed with exit code 2.
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|