Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add typescript support #13

Merged
merged 33 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6ee6283
ignore compiler warnings
manuel3108 Aug 11, 2024
21e3248
use `acorn-typescript`
manuel3108 Aug 11, 2024
8f588c2
update wrong testcase
manuel3108 Aug 11, 2024
ebf5619
add basic typescript support
manuel3108 Aug 11, 2024
793622f
merge main
Rich-Harris Aug 22, 2024
1080703
switch to `@typescript-eslint/types`
manuel3108 Aug 23, 2024
2df4861
fix types for comments
manuel3108 Aug 23, 2024
eed1c85
speedup types a tiny bit
manuel3108 Aug 24, 2024
73b9988
use proper types for `addTypeAnnotations`
manuel3108 Aug 24, 2024
c2ad2fe
add tests for decorators
manuel3108 Aug 24, 2024
adca850
rename method
manuel3108 Aug 24, 2024
5b62161
allow ts testing for sandbox
manuel3108 Aug 25, 2024
3740486
fix more typing errors
manuel3108 Aug 25, 2024
add1192
add utility types test
manuel3108 Aug 25, 2024
2b1e15e
add semi after type alias
manuel3108 Aug 25, 2024
76715c2
add enum support
manuel3108 Aug 25, 2024
04d3c41
support as expression
manuel3108 Aug 25, 2024
0957485
support satisfies expression
manuel3108 Aug 25, 2024
1c37685
support property acdessibilities
manuel3108 Aug 25, 2024
3c6b282
fix test
manuel3108 Aug 25, 2024
5a4f96e
add support for interfaces
manuel3108 Aug 25, 2024
f68b9aa
support types (tuple, union, intersection)
manuel3108 Sep 1, 2024
81b2a6a
fix type errors
manuel3108 Sep 1, 2024
a4de1cf
add large file test
manuel3108 Sep 1, 2024
7670420
fix precedences
manuel3108 Sep 19, 2024
a41e1ff
fix deps
manuel3108 Sep 20, 2024
7f09e7e
fixed code review suggestions
manuel3108 Sep 21, 2024
0c70b1d
use `sequence` wherever possible
manuel3108 Dec 16, 2024
4184c90
update snapshot
manuel3108 Dec 16, 2024
ce0b2c4
bump typescript
Rich-Harris Dec 17, 2024
369091e
use typescript-jsdoc import comments
Rich-Harris Dec 17, 2024
800680c
snake_case
Rich-Harris Dec 17, 2024
3b20f6b
snake_case
Rich-Harris Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
/node_modules
/types
/test/samples/*/_actual.*
/test/sandbox/_input.js
/test/sandbox/_output.js
/test/sandbox/_input.ts
/test/sandbox/_output.ts
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,26 @@
},
"types": "./types/index.d.ts",
"devDependencies": {
"@vitest/ui": "^2.0.5",
"acorn": "^8.10.0",
"dts-buddy": "^0.2.4",
"@vitest/ui": "^2.1.1",
"acorn": "^8.11.3",
"acorn-typescript": "^1.4.13",
"dts-buddy": "^0.5.4",
"prettier": "^3.0.3",
"typescript": "^5.2.2",
"vitest": "^2.0.5",
"typescript": "^5.7.2",
"vitest": "^2.1.1",
"zimmerframe": "^1.0.0"
},
"scripts": {
"check": "tsc",
"prepublishOnly": "pnpm test && dts-buddy",
"prepublishOnly": "pnpm test && dts-buddy -m dts-buddy:./src/public.d.ts",
"sandbox": "node test/sandbox/index.js",
"test": "vitest --run"
"test": "vitest --run",
"test:ui": "vitest --ui"
},
"license": "MIT",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.4.15",
"@types/estree": "^1.0.1"
"@typescript-eslint/types": "^8.2.0"
},
"packageManager": "pnpm@9.8.0"
}
759 changes: 269 additions & 490 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Loading
Loading