mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 13:37:35 +00:00
Fix transform return value (#43134)
This commit is contained in:
parent
9cdb5d3265
commit
d656d4dbef
4
types/babel__standalone/index.d.ts
vendored
4
types/babel__standalone/index.d.ts
vendored
@ -4,9 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// Minimum TypeScript Version: 3.4
|
||||
|
||||
import { TransformOptions, types, FileResultCallback } from '@babel/core';
|
||||
import { TransformOptions, types, FileResultCallback, BabelFileResult } from '@babel/core';
|
||||
|
||||
export function transform(code: string, options: TransformOptions): string;
|
||||
export function transform(code: string, options: TransformOptions): BabelFileResult;
|
||||
|
||||
export function transformFromAst(ast: types.Node, code: string | undefined, opts: TransformOptions | undefined, callback?: FileResultCallback): void;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user