Debian Codegraph @

types-babel-standalone/README.md

raw symbols SCIP
1 # Installation
2 > `npm install --save @types/babel__standalone`
3
4 # Summary
5 This package contains type definitions for @babel/standalone (https://github.com/babel/babel/tree/master/packages/babel-standalone).
6
7 # Details
8 Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__standalone.
9 ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__standalone/index.d.ts)
10 ````ts
11 // Type definitions for @babel/standalone 7.1
12 // Project: https://github.com/babel/babel/tree/master/packages/babel-standalone
13 // Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
14 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15 // Minimum TypeScript Version: 3.4
16
17 import { TransformOptions, types, FileResultCallback, BabelFileResult } from '@babel/core';
18
19 export function transform(code: string, options: TransformOptions): BabelFileResult;
20
21 export function transformFromAst(ast: types.Node, code: string | undefined, opts: TransformOptions | undefined, callback?: FileResultCallback): void;
22
23 export function registerPlugin(name: string, plugin: object | (() => void)): void;
24
25 export function registerPlugins(newPlugins: {
26 [key: string]: object | (() => void)
27 }): void;
28
29 export function registerPreset(name: string, preset: object | (() => void)): void;
30 export function registerPresets(newPresets: {
31 [key: string]: object | (() => void),
32 }): void;
33
34 export const availablePlugins: Record<string, object | (() => void)>;
35 export const availablePresets: Record<string, object | (() => void)>;
36
37 export function transformScriptTags(scriptTags?: HTMLCollection): void;
38
39 export function disableScriptTags(): void;
40
41 export as namespace babel;
42
43 ````
44
45 ### Additional Details
46 * Last updated: Thu, 23 Dec 2021 23:34:18 GMT
47 * Dependencies: [@types/babel__core](https://npmjs.com/package/@types/babel__core)
48 * Global values: `babel`
49
50 # Credits
51 These definitions were written by [DefinitelyTyped](https://github.com/DefinitelyTyped).