mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix linting errors for babel-template (#18427)
This commit is contained in:
parent
50419ba7dc
commit
ab4364a415
@ -1,5 +1,3 @@
|
||||
/// <reference types="babel-generator" />
|
||||
|
||||
// Example from https://github.com/babel/babel/tree/master/packages/babel-template
|
||||
import template = require('babel-template');
|
||||
import generate from 'babel-generator';
|
||||
|
||||
7
types/babel-template/index.d.ts
vendored
7
types/babel-template/index.d.ts
vendored
@ -1,14 +1,10 @@
|
||||
// Type definitions for babel-template v6.7
|
||||
// Type definitions for babel-template 6.25
|
||||
// Project: https://github.com/babel/babel/tree/master/packages/babel-template
|
||||
// Definitions by: Troy Gerwien <https://github.com/yortus>
|
||||
// Marvin Hagemeister <https://github.com/marvinhagemeister>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="babylon" />
|
||||
/// <reference types="babel-types" />
|
||||
|
||||
|
||||
import { BabylonOptions } from 'babylon';
|
||||
import * as t from 'babel-types';
|
||||
type Node = t.Node;
|
||||
@ -20,4 +16,3 @@ export = template;
|
||||
declare function template(code: string, opts?: BabylonOptions): UseTemplate;
|
||||
|
||||
type UseTemplate = (nodes?: {[placeholder: string]: Node}) => Node;
|
||||
|
||||
|
||||
1
types/babel-template/tslint.json
Normal file
1
types/babel-template/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user