Skip to content

Commit

Permalink
Change api
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 3, 2021
1 parent ddcbff5 commit ddcb385
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions node-swc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export class Compiler {
* @param options
*/
babelify(src: string, options?: BabelifyOptions): Promise<babel.Program>;
babelify(src: Module, options?: BabelifyOptions): Promise<babel.Program>;
babelify(input: string | Module, options?: BabelifyOptions): Promise<babel.Program> {
babelify(src: Program, options?: BabelifyOptions): Promise<babel.Program>;
babelify(input: string | Program, options?: BabelifyOptions): Promise<babel.Program> {
}

/**
Expand All @@ -53,8 +53,8 @@ export class Compiler {
* @param options
*/
babelifySync(src: string, options?: BabelifyOptions): babel.Program;
babelifySync(src: Module, options?: BabelifyOptions): babel.Program;
babelifySync(input: string | Module, options?: BabelifyOptions): babel.Program {
babelifySync(src: Program, options?: BabelifyOptions): babel.Program;
babelifySync(input: string | Program, options?: BabelifyOptions): babel.Program {
}

parse(
Expand Down

0 comments on commit ddcb385

Please sign in to comment.