mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-08 17:19:27 +08:00
Add htmlbars-inline-precompile definition.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import hbs from 'htmlbars-inline-precompile';
|
||||
|
||||
hbs`this is allowed`;
|
||||
13
types/htmlbars-inline-precompile/index.d.ts
vendored
Normal file
13
types/htmlbars-inline-precompile/index.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// Type definitions for htmlbars-inline-precompile 1.0
|
||||
// Project: ember-cli-htmlbars-inline-precompile
|
||||
// Definitions by: Chris Krycho <https://github.com/chriskrycho>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// This is a bit of a funky one: it's from a [Babel plugin], but is exported for
|
||||
// Ember applications as the module `"htmlbars-incline-precompile"`. It acts
|
||||
// like a tagged string from the perspective of consumers, but is actually an
|
||||
// AST transformation which generates a function as its output.
|
||||
//
|
||||
// [Babel plugin]: https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile#babel-plugin-htmlbars-inline-precompile-
|
||||
|
||||
export default function hbs(tagged: TemplateStringsArray): () => {};
|
||||
22
types/htmlbars-inline-precompile/tsconfig.json
Normal file
22
types/htmlbars-inline-precompile/tsconfig.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"htmlbars-inline-precompile-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/htmlbars-inline-precompile/tslint.json
Normal file
1
types/htmlbars-inline-precompile/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user