Skip to content

Convert @emotion/react's source code to TypeScript #1280

Convert @emotion/react's source code to TypeScript

Convert @emotion/react's source code to TypeScript #1280

Triggered via pull request December 3, 2024 23:03
Status Failure
Total duration 3m 13s
Artifacts

main.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 7 warnings
TypeScript: site/components/carbon-ads.tsx#L101
Type '{ styles: SerializedStyles; }' is not assignable to type 'IntrinsicAttributes & ((GlobalProps & Ref<any>) & GlobalProps & RefAttributes<any>)'.
TypeScript: site/components/global-styles.tsx#L17
Type '{ styles: (string | SerializedStyles)[]; }' is not assignable to type 'IntrinsicAttributes & ((GlobalProps & Ref<any>) & GlobalProps & RefAttributes<any>)'.
TypeScript: site/components/search.tsx#L32
Type '{ styles: SerializedStyles; }' is not assignable to type 'IntrinsicAttributes & ((GlobalProps & Ref<any>) & GlobalProps & RefAttributes<any>)'.
TypeScript
Process completed with exit code 2.
dtslint
Module '"/home/runner/work/emotion/emotion/node_modules/@types/hoist-non-react-statics/index"' can only be default-imported using the 'esModuleInterop' flag
dtslint
Cannot find module '../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
dtslint
Cannot find name 'jest'.
dtslint
Cannot find name 'global'. Did you mean 'Global'?
dtslint
Argument of type '{}' is not assignable to parameter of type 'Theme'.
dtslint
Argument of type 'Partial<Theme> | ((outerTheme: Theme) => Theme)' is not assignable to parameter of type 'Theme'.
dtslint
Cannot find module '../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
dtslint
Cannot find name 'jest'.
dtslint
Cannot find name 'global'. Did you mean 'Global'?
dtslint
Argument of type '{}' is not assignable to parameter of type 'Theme'.
TypeScript
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Linting
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Prod
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Dist
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test React 18
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Tests on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
dtslint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636