Skip to content

Commit

Permalink
fix(types): mark MagicString options as optional (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Mar 2, 2022
1 parent e53d62f commit 15c3e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -75,7 +75,7 @@ export interface OverwriteOptions {
}

export default class MagicString {
constructor(str: string, options?: MagicStringOptions);
constructor(str: string, options?: Partial<MagicStringOptions>);
addSourcemapLocation(char: number): void;
append(content: string): MagicString;
appendLeft(index: number, content: string): MagicString;
Expand Down

0 comments on commit 15c3e66

Please sign in to comment.