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 type declarations to the npm package #1563

Merged
merged 2 commits into from Dec 2, 2021
Merged

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Dec 2, 2021

Closes #13

pkg/sass_api/CHANGELOG.md Show resolved Hide resolved
Future<String> cloneOrCheckout(String url, String ref) async {
var name = p.url.basename(url);
if (p.url.extension(name) == ".git") name = p.url.withoutExtension(name);
String cloneOrCheckout(String url, String ref, {String? name}) {
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why this is no longer asynchronous?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to call it from within pkg.npmAdditionalFiles.fn which doesn't support async callbacks.

@nex3 nex3 merged commit fcdaa4e into main Dec 2, 2021
@nex3 nex3 deleted the type-declarations branch December 2, 2021 23:01
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.

Produce .d.ts (typings) and externs (closure) for use by JS
2 participants