mirror of
https://github.com/sass/sass.git
synced 2024-09-21 10:37:22 +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 {RawSourceMap} from 'source-map-js';
|
||||||
|
|
||||||
import {Options, StringOptions} from './options';
|
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 {Syntax} from './options';
|
||||||
import {PromiseOr} from './util/promise_or';
|
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';
|
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 {FileImporter, Importer} from './importer';
|
||||||
import {Logger} from './logger';
|
import {Logger} from './logger';
|
||||||
import {Value} from './value';
|
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 {RawSourceMap} from 'source-map-js'; // https://www.npmjs.com/package/source-map-js
|
||||||
|
|
||||||
import {Options, StringOptions} from './options';
|
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 {Syntax} from './options';
|
||||||
import {PromiseOr} from './util/promise_or';
|
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';
|
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 {FileImporter, Importer} from './importer';
|
||||||
import {Logger} from './logger';
|
import {Logger} from './logger';
|
||||||
import {Value} from './value';
|
import {Value} from './value';
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
|
"lib": ["dom"],
|
||||||
"paths": {
|
"paths": {
|
||||||
"*": ["./tool/types/*"]
|
"*": ["./tool/types/*"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user