Installation
npm install --save @types/babel-template
Summary
This package contains type definitions for babel-template (https://github.com/babel/babel/tree/master/packages/babel-template).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel-template.
import * as t from "babel-types";
import { BabylonOptions } from "babylon";
type Node = t.Node;
// NB: This export doesn't match the handbook example, where `template` is the default export.
// But it does match the runtime behaviour (at least at the time of this writing). For some reason,
// babel-template/lib/index.js has this line at the bottom: module.exports = exports["default"];
export = template;
declare function template(code: string, opts?: BabylonOptions): UseTemplate;
type UseTemplate = (nodes?: { [placeholder: string]: Node }) => Node;
Additional Details
Credits
These definitions were written by Troy Gerwien, and Marvin Hagemeister.
Current Tags
-
6.25.5
...
latest
(2 years ago)
-
6.7.14
...
ts2.0
(10 years ago)
-
6.7.14
...
ts2.1
(10 years ago)
-
6.7.14
...
ts2.2
(10 years ago)
-
6.25.0
...
ts2.3
(9 years ago)
-
6.25.0
...
ts2.4
(9 years ago)
-
6.25.0
...
ts2.5
(9 years ago)
-
6.25.0
...
ts2.6
(9 years ago)
-
6.25.0
...
ts2.7
(9 years ago)
-
6.25.2
...
ts2.8
(7 years ago)
-
6.25.2
...
ts2.9
(7 years ago)
-
6.25.2
...
ts3.0
(7 years ago)
-
6.25.2
...
ts3.1
(7 years ago)
-
6.25.2
...
ts3.2
(7 years ago)
-
6.25.2
...
ts3.3
(7 years ago)
-
6.25.2
...
ts3.4
(7 years ago)
-
6.25.2
...
ts3.5
(7 years ago)
-
6.25.2
...
ts3.6
(7 years ago)
-
6.25.2
...
ts3.7
(7 years ago)
-
6.25.2
...
ts3.8
(7 years ago)
-
6.25.2
...
ts3.9
(7 years ago)
-
6.25.2
...
ts4.0
(7 years ago)
-
6.25.2
...
ts4.1
(7 years ago)
-
6.25.2
...
ts4.2
(7 years ago)
-
6.25.2
...
ts4.3
(7 years ago)
-
6.25.2
...
ts4.4
(7 years ago)
-
6.25.5
...
ts4.5
(2 years ago)
-
6.25.5
...
ts4.6
(2 years ago)
-
6.25.5
...
ts4.7
(2 years ago)
-
6.25.5
...
ts4.8
(2 years ago)
-
6.25.5
...
ts4.9
(2 years ago)
-
6.25.5
...
ts5.0
(2 years ago)
-
6.25.5
...
ts5.1
(2 years ago)
-
6.25.5
...
ts5.2
(2 years ago)
-
6.25.5
...
ts5.3
(2 years ago)
-
6.25.5
...
ts5.4
(2 years ago)
-
6.25.5
...
ts5.5
(2 years ago)
18 Versions