init #304
Annotations
10 errors and 1 warning
test:
src/index.ts#L25
Type 'undefined' cannot be used as an index type.
|
test:
src/index.ts#L54
Type '(this: TransformPluginContext, code: string, id: string) => Promise<{ code: string | null | undefined; map: { version: number; sources: string[]; names: string[]; sourceRoot?: string | undefined; sourcesContent?: string[] | undefined; mappings: string; file: string; } | null | undefined; }> | { ...; } | undefined' is not assignable to type 'ObjectHook<(this: TransformPluginContext, code: string, id: string, options?: { ssr?: boolean | undefined; } | undefined) => TransformResult | Promise<...>> | undefined'.
|
test:
src/index.ts#L95
'config.optimizeDeps.exclude' is possibly 'undefined'.
|
test:
src/index.ts#L98
Argument of type 'unknown' is not assignable to parameter of type 'string'.
|
test:
src/index.ts#L101
Type '(this: TransformPluginContext, code: string, id: string) => Promise<{ code: string | null | undefined; map: { version: number; sources: string[]; names: string[]; sourceRoot?: string | undefined; sourcesContent?: string[] | undefined; mappings: string; file: string; } | null | undefined; }> | undefined' is not assignable to type 'ObjectHook<(this: TransformPluginContext, code: string, id: string, options?: { ssr?: boolean | undefined; } | undefined) => TransformResult | Promise<...>> | undefined'.
|
test:
src/index.ts#L139
Argument of type 'string[] | undefined' is not assignable to parameter of type 'never[] | undefined'.
|
test:
src/index.ts#L144
Argument of type 'unknown' is not assignable to parameter of type 'string | RollupError'.
|
test:
src/index.ts#L147
Type '(this: TransformPluginContext, code: string, id: string) => Promise<{ code: string | null | undefined; map: { version: number; sources: string[]; names: string[]; sourceRoot?: string | undefined; sourcesContent?: string[] | undefined; mappings: string; file: string; } | null | undefined; }> | { ...; } | undefined' is not assignable to type 'ObjectHook<(this: TransformPluginContext, code: string, id: string, options?: { ssr?: boolean | undefined; } | undefined) => TransformResult | Promise<...>> | undefined'.
|
test:
src/scanner.ts#L57
Type '{ message: any; } | undefined' is not assignable to type '{ message: ThreadMessage; }'.
|
test:
src/scanner.ts#L84
Type 'string | undefined' is not assignable to type 'string'.
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|