Add htmlbars-inline-precompile definition.

This commit is contained in:
Chris Krycho
2017-08-08 19:41:28 -04:00
parent 26223f00d7
commit 63cb83efaf
4 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
import hbs from 'htmlbars-inline-precompile';
hbs`this is allowed`;

View 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): () => {};

View 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"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }