Skip to content

Improve emitted type declarations for TS 5.5+ #310

Improve emitted type declarations for TS 5.5+

Improve emitted type declarations for TS 5.5+ #310

Triggered via pull request July 22, 2024 01:04
Status Failure
Total duration 30s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
Unhandled error: package/src/core/define-integration.ts#L72
TypeCheckError: Cannot find name 'TSetup'. ❯ src/core/define-integration.ts:72:62
Unhandled error: package/src/core/with-plugins.ts#L85
TypeCheckError: Type '{ hooks { 'astroconfigsetup'? (options { config AstroConfig; command "dev" | "build" | "preview"; isRestart boolean; updateConfig (newConfig DeepPartial<AstroConfig>) => AstroConfig; ... 8 more ...; logger AstroIntegrationLogger; }) => void | Promise<...>; ... 8 more ...; 'astrobuilddone'? (options { ...' is not assignable to type 'WithPluginsReturn<Prettify<Omit<Extensions, keyof WithPluginsParams<any>>>>'. Type '{ hooks { 'astroconfigsetup'? (options { config AstroConfig; command "dev" | "build" | "preview"; isRestart boolean; updateConfig (newConfig DeepPartial<AstroConfig>) => AstroConfig; ... 8 more ...; logger AstroIntegrationLogger; }) => void | Promise<...>; ... 8 more ...; 'astrobuilddone'? (options { ...' is not assignable to type 'Prettify<Omit<Extensions, keyof WithPluginsParams<any>>>'. ❯ src/core/with-plugins.ts:85:2
test
Process completed with exit code 1.
test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/