Skip to content

Commit

Permalink
Update TS types
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed May 1, 2022
1 parent f6dbb8f commit b2e5a12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/terser.d.ts
@@ -1,6 +1,6 @@
/// <reference lib="es2015" />

import { RawSourceMap } from 'source-map';
import { SectionedSourceMapInput, EncodedSourceMap, DecodedSourceMap } from '@jridgewell/source-map';

export type ECMA = 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020;

Expand Down Expand Up @@ -192,12 +192,13 @@ export interface MinifyOptions {

export interface MinifyOutput {
code?: string;
map?: RawSourceMap | string;
map?: EncodedSourceMap | string;
decoded_map?: DecodedSourceMap | null;
}

export interface SourceMapOptions {
/** Source map object, 'inline' or source map file content */
content?: RawSourceMap | string;
content?: SectionedSourceMapInput | string;
includeSources?: boolean;
filename?: string;
root?: string;
Expand Down

0 comments on commit b2e5a12

Please sign in to comment.