mirror of
https://github.com/sass/sass.git
synced 2024-09-21 02:27:30 +00:00
Use the URL type from the DOM definitions, not from Node (#3214)
The two aren't quite interchangeable: the Node definition has a few more fields, which means that URLs created naively with `new URL()` aren't assignable to that type.
This commit is contained in:
parent
b192519b55
commit
23278f2c92
1
js-api-doc/compile.d.ts
vendored
1
js-api-doc/compile.d.ts
vendored
@ -1,4 +1,3 @@
|
||||
import {URL} from 'url';
|
||||
import {RawSourceMap} from 'source-map-js';
|
||||
|
||||
import {Options, StringOptions} from './options';
|
||||
|
2
js-api-doc/importer.d.ts
vendored
2
js-api-doc/importer.d.ts
vendored
@ -1,5 +1,3 @@
|
||||
import {URL} from 'url';
|
||||
|
||||
import {Syntax} from './options';
|
||||
import {PromiseOr} from './util/promise_or';
|
||||
|
||||
|
2
js-api-doc/logger/source_span.d.ts
vendored
2
js-api-doc/logger/source_span.d.ts
vendored
@ -1,5 +1,3 @@
|
||||
import {URL} from 'url';
|
||||
|
||||
import {SourceLocation} from './source_location';
|
||||
|
||||
/**
|
||||
|
2
js-api-doc/options.d.ts
vendored
2
js-api-doc/options.d.ts
vendored
@ -1,5 +1,3 @@
|
||||
import {URL} from 'url';
|
||||
|
||||
import {FileImporter, Importer} from './importer';
|
||||
import {Logger} from './logger';
|
||||
import {Value} from './value';
|
||||
|
1
spec/js-api/compile.d.ts
vendored
1
spec/js-api/compile.d.ts
vendored
@ -1,4 +1,3 @@
|
||||
import {URL} from 'url';
|
||||
import {RawSourceMap} from 'source-map-js'; // https://www.npmjs.com/package/source-map-js
|
||||
|
||||
import {Options, StringOptions} from './options';
|
||||
|
2
spec/js-api/importer.d.ts
vendored
2
spec/js-api/importer.d.ts
vendored
@ -1,5 +1,3 @@
|
||||
import {URL} from 'url';
|
||||
|
||||
import {Syntax} from './options';
|
||||
import {PromiseOr} from './util/promise_or';
|
||||
|
||||
|
2
spec/js-api/logger/source_span.d.ts
vendored
2
spec/js-api/logger/source_span.d.ts
vendored
@ -1,5 +1,3 @@
|
||||
import {URL} from 'url';
|
||||
|
||||
import {SourceLocation} from './source_location';
|
||||
|
||||
/**
|
||||
|
2
spec/js-api/options.d.ts
vendored
2
spec/js-api/options.d.ts
vendored
@ -1,5 +1,3 @@
|
||||
import {URL} from 'url';
|
||||
|
||||
import {FileImporter, Importer} from './importer';
|
||||
import {Logger} from './logger';
|
||||
import {Value} from './value';
|
||||
|
@ -3,6 +3,7 @@
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"rootDir": ".",
|
||||
"lib": ["dom"],
|
||||
"paths": {
|
||||
"*": ["./tool/types/*"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user