mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[webpack-sources] Make CacheSource extends Source (#43192)
* Make CacheSource extends Source * Fix typescript@2.9 error
This commit is contained in:
parent
58a304b264
commit
b21148cd10
8
types/webpack-sources/index.d.ts
vendored
8
types/webpack-sources/index.d.ts
vendored
@ -39,15 +39,13 @@ export interface SourceAndMapMixin {
|
||||
};
|
||||
}
|
||||
|
||||
export class CachedSource {
|
||||
export class CachedSource extends Source {
|
||||
_source: Source;
|
||||
_cachedSource: string;
|
||||
_cachedSize: number;
|
||||
_cachedMaps: {
|
||||
[prop: string]: RawSourceMap
|
||||
};
|
||||
node: (options: any) => SourceNode;
|
||||
listMap: (options: any) => SourceListMap;
|
||||
|
||||
constructor(source: Source);
|
||||
|
||||
@ -55,6 +53,10 @@ export class CachedSource {
|
||||
|
||||
size(): number;
|
||||
|
||||
node(options: any): SourceNode;
|
||||
|
||||
listMap(options: any): SourceListMap;
|
||||
|
||||
sourceAndMap(options: any): {
|
||||
source: string;
|
||||
map: RawSourceMap;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user