Commit Graph

17 Commits

Author SHA1 Message Date
Jennifer Thakar
28d4ed294d
Backport deprecation API to legacy JS API (#3907) 2024-09-03 15:04:38 -07:00
James Stuckey Weber
336bfd69b2 [Package Importer] Add types and specs (#3728)
Co-authored-by: Jonny Gerig Meyer <jonny@oddbird.net>
2024-03-27 11:43:24 -07:00
Natalie Weizenbaum
1523bffb36
Add a Markdown linter (#3667) 2023-08-22 21:10:27 +00:00
Natalie Weizenbaum
7abda4e2f4
Use literate programming for JS API specs (#3552) 2023-04-27 13:50:53 -07:00
Natalie Weizenbaum
809bc03b48
Fix some incorrect documentation/typings in LegacyPluginThis.options (#3246)
The new documentation/typings reflect the actual behavior of both Node
Sass and Dart Sass.
2022-01-13 18:03:46 -08:00
Natalie Weizenbaum
ade3787da2
Add a type annotation for the top-level NULL field (#3243) 2022-01-11 17:28:10 -08:00
Natalie Weizenbaum
72974e1ec9
Add type annotations for the top-level TRUE and FALSE fields (#3241) 2022-01-07 14:34:44 -08:00
Natalie Weizenbaum
a9aa972e44
Add type annotations for the sass.types.Error class (#3238) 2022-01-05 16:39:32 -08:00
Natalie Weizenbaum
4b48b0e990
Add a type declaration for LegacyPluginThis.options.context (#3236) 2022-01-05 16:08:51 -08:00
Natalie Weizenbaum
b51895ec1d
Make LegacyAsyncFunction type more usable (#3237)
TypeScript requires that a callback type with a rest parameter be
passed a callback with a rest parameter. This makes it awkward to pass
in functions with a known number of parameters, as in
`foo($arg): (value, done) => { /* ... */ }`. This type declaration
makes that easier (although callers still need to explicitly declare a
type for the `done` parameter).
2022-01-05 16:08:41 -08:00
Natalie Weizenbaum
99168e0cbf
Make LegacyFileOptions.data optional (#3215)
If this is mandatory, the compiler will complain if it's not passed,
but it's typed as `never` so it's impossible to pass a valid value.
2021-12-10 21:11:38 +00:00
Natalie Weizenbaum
6f5552ff8e Document the legacy API and Logger 2021-10-04 15:01:18 -07:00
Natalie Weizenbaum
e0b72c11ba Rename ImporterThis and PluginThis to clearly indicate legacy status 2021-10-04 14:19:14 -07:00
Natalie Weizenbaum
f289bb8c9b Test that typedoc builds with no warnings 2021-10-01 17:36:53 -07:00
Natalie Weizenbaum
d0fb4acff6 Add new JS APIs to the spec 2021-09-07 17:32:11 -07:00
Natalie Weizenbaum
c8f6dbf3d4 Rename legacy Node APIs to Legacy*
This avoids name conflicts with the new APIs.
2021-09-07 16:44:02 -07:00
Natalie Weizenbaum
6f7fbe6b8a Refactor js-api.d.ts into multiple files 2021-09-07 16:31:20 -07:00