# @types/htmlbars-inline-precompile

> TypeScript definitions for htmlbars-inline-precompile

Latest version **3.0.4** (published 2025-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/htmlbars-inline-precompile
pnpm add @types/htmlbars-inline-precompile
yarn add @types/htmlbars-inline-precompile
bun add @types/htmlbars-inline-precompile
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 3.0.4 |
| Published | 2025-07-07 |
| First published | 2017-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/htmlbars-inline-precompile
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/htmlbars-inline-precompile
- npm.io page: https://npm.io/package/@types/htmlbars-inline-precompile

## Recent versions

- 3.0.4 (latest) — 2025-07-07
- 3.0.3 (ts4.6) — 2024-01-16
- 3.0.2 (ts4.5) — 2023-11-07
- 3.0.0 (ts3.8) — 2022-01-21
- 1.0.1 (ts2.0) — 2019-02-14
- 3.0.1 — 2023-10-18
- 1.0.0 — 2017-08-21

## README

# Installation
> `npm install --save @types/htmlbars-inline-precompile`

# Summary
This package contains type definitions for htmlbars-inline-precompile (https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/htmlbars-inline-precompile.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/htmlbars-inline-precompile/index.d.ts)
````ts
// This is a bit of a funky one: it's from a [Babel plugin], but is exported for
// Ember applications as the module `"htmlbars-inline-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. That function in
// turn [generates a string or array of strings][output] to use with the Ember
// testing helper `this.render()`.
//
// [Babel plugin]: https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile#babel-plugin-htmlbars-inline-precompile-
// [output]: https://github.com/emberjs/ember-test-helpers/blob/77f9a53da9d8c19a85b3122788caadbcc59274c2/lib/ember-test-helpers/-legacy-overrides.js#L17-L42

// This uses the same "brand" as the types for `ember-cli-htmlbars` for
// backwards compatibility. The actual value of the brand doesn't matter; it is
// only important that it (a) is distinct and (b) interoperates with existing
// uses of the `hbs` export from [`htmlbars-inline-precompile`][1] and
// [`ember-cli-htmlbars`][2].
//
// [1]:
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/24a21e0b8ec7eccdec781d7513bfa5947f1c6e20/types/ember/index.d.ts#L540:L542
// [2]:
// https://github.com/ember-cli/ember-cli-htmlbars/blob/ff397bb00b065d97b00111de5ae1e4240a778f26/lib/index.d.ts
//
// Note that we do export this; the details are irrelevant to consumers. The
// point is simply to have a *distinct* type that is therefore not substitutable
// for just any other type. (In the future, we will coordinate a change which
// makes this export only the type side of a class with a private property, such
// that it *cannot* be used.)
export interface TemplateFactory {
    __htmlbars_inline_precompile_template_factory: any;
}

export default function hbs(tagged: TemplateStringsArray): TemplateFactory;

````

### Additional Details
 * Last updated: Mon, 07 Jul 2025 21:33:30 GMT
 * Dependencies: none

# Credits
These definitions were written by [Krystan HuffMenne](https://github.com/gitKrystan), [James C. Davis](https://github.com/jamescdavis), and [Peter Wagenet](https://github.com/wagenet).

---
_Source: https://npm.io/package/@types/htmlbars-inline-precompile · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
