Skip to content

Commit fc4d7bd

Browse files
authoredDec 5, 2024··
Convert @emotion/react's source code to TypeScript (#3281)
* Convert `@emotion/react`'s source code to TypeScript * add changeset * limit `package.json['files']` * fixed type issue * try `esModuleInterop` * add required cast * use `resolveJsonModule` too * fixed extra things * fixed a silly mistake * one extra thing * fixed type error * try building before running dtslint * fixed import * try to bump tested TS versions * add extra ts-ignore * make sure the ts-ignore is above the problematic line * rewrite tests to stop relying on implementation detail * fixed type error * corrext tests * fixed entrypoints types

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+582
-585
lines changed
 

‎.changeset/rotten-baboons-knock.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@emotion/react': minor
3+
---
4+
5+
Source code has been migrated to TypeScript. From now on type declarations will be emitted based on that, instead of being hand-written.

‎.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,8 @@ jobs:
8888
- uses: actions/checkout@v3
8989
- uses: ./.github/actions/ci-setup
9090

91+
- name: build
92+
run: yarn build
93+
9194
- name: dtslint
9295
run: yarn test:typescript

0 commit comments

Comments
 (0)
Please sign in to comment.