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

Support Single Types file #18

Merged
merged 4 commits into from
Oct 4, 2024
Merged

Support Single Types file #18

merged 4 commits into from
Oct 4, 2024

Conversation

marklundin
Copy link
Member

Previously the parser would be initialized with a directory path from which to load types

new Parser().init('/path/to/types/dir/');

The dom types are in seperate files, which would result in ~80 network request to various files.

This PR extends the api so that a path to a single file can be used instead, which allows for a single file to be loaded that represents all the types neccessary

new Parser().init('/path/to/types/dir/lib.d.ts');

@marklundin marklundin merged commit e26fcf3 into main Oct 4, 2024
1 check passed
@marklundin marklundin deleted the fix-esm-next branch October 4, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants