mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Fix type for SourceNode.add()
This commit is contained in:
2
source-map/source-map.d.ts
vendored
2
source-map/source-map.d.ts
vendored
@@ -73,7 +73,7 @@ declare module SourceMap {
|
||||
constructor(line: number, column: number, source: string);
|
||||
constructor(line: number, column: number, source: string, chunk?: string, name?: string);
|
||||
public static fromStringWithSourceMap(code: string, sourceMapConsumer: SourceMapConsumer, relativePath?: string): SourceNode;
|
||||
public add(chunk: string): void;
|
||||
public add(chunk: any): SourceNode;
|
||||
public prepend(chunk: string): void;
|
||||
public setSourceContent(sourceFile: string, sourceContent: string): void;
|
||||
public walk(fn: (chunk: string, mapping: MappedPosition) => void): void;
|
||||
|
||||
Reference in New Issue
Block a user