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

feat: add TypeScript types #28

Merged
merged 1 commit into from
Nov 1, 2020
Merged

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Nov 1, 2020

Fixes #15.

Types depends on #27 to be correct for non-ESM users

@SimenB SimenB mentioned this pull request Nov 1, 2020
reexports: string[];
}

export declare function parse(source: string, name?: string): Exports;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if name should be here? afaict it's not documented

export declare function parse(source: string, name?: string): Exports;
export declare function init(): Promise<void>;

export {};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of interest, what is this line for?

Copy link
Member Author

@SimenB SimenB Nov 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guybedford guybedford merged commit 372c27f into nodejs:master Nov 1, 2020
@SimenB SimenB deleted the typescript branch November 1, 2020 23:11
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.

Add TypeScript typings
2 participants