Merged
Conversation
66fb5e9 to
2d60c25
Compare
stof
reviewed
Oct 28, 2021
js-api-doc/exception.d.ts
Outdated
| * Unlike [[message]], this does *not* include representations of [[span]] or | ||
| * [[sassStack]]. | ||
| */ | ||
| sassMessage: string; |
Contributor
There was a problem hiding this comment.
@nex3 should those be typed as readonly properties ? AFAICT, dart-sass implements them as getters
Awjin
suggested changes
Oct 29, 2021
stof
reviewed
Oct 31, 2021
|
|
||
| /** Additional options specific to compiling from a string. */ | ||
| export type StringOptions<sync extends 'sync' | 'async'> = Options<sync> & { | ||
| export interface StringOptionsWithoutImporter<sync extends 'sync' | 'async'> |
Contributor
There was a problem hiding this comment.
should this type have importer?: never to ensure that passing an importer option gets typed as StringOptionsWithImporter and reports a missing url if needed.
Contributor
Author
There was a problem hiding this comment.
It turns out this doesn't work because StringOptionsWithImporter extends StringOptionsWithoutImporter. But that superclass relationship should provide pretty decent error messages on its own.
Awjin
approved these changes
Nov 1, 2021
This takes more advantage of overloads rather than using factory constructors or methods with different names.
e7a659a to
a50c1bb
Compare
This was referenced Dec 1, 2021
Closed
mirisuzanne
pushed a commit
that referenced
this pull request
Feb 10, 2022
mirisuzanne
added a commit
that referenced
this pull request
Feb 10, 2022
* main: (149 commits) Add the sourceMapIncludeSources option in the new JS API (#3226) Fix the toc tool to insert the toc (#3225) Fix some incorrect documentation/typings in LegacyPluginThis.options (#3246) Add a type annotation for the top-level NULL field (#3243) Add type annotations for the top-level TRUE and FALSE fields (#3241) Add type annotations for the sass.types.Error class (#3238) Add a type declaration for LegacyPluginThis.options.context (#3236) Make LegacyAsyncFunction type more usable (#3237) Allow SassFunction signatures to be checked on return (#3220) Make LegacyFileOptions.data optional (#3215) Use the URL type from the DOM definitions, not from Node (#3214) Document the new JS API (#3183) Make the new JS API a bit more idiomatic (#3200) Update immutable-js dep. (#3195) Add a code example for Logger.silent (#3192) Update dependencies (#3193) Replace FileImporterResult with a plain URL (#3180) Convert explicit compatiblity HTML into a nicer @-tag Convert explicit "Heads up" HTML into nicer-looking Markdown Automatically handle absolute file: URLs for FileImporters (#3181) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This shouldn't be merged until the new API is supported by Dart Sass.