UNPKG

661 BTypeScriptView Raw
1declare module 'ember-template-compiler/lib/system/precompile' {
2 /**
3 @module ember
4 */
5 import type { EmberPrecompileOptions } from 'ember-template-compiler/lib/types';
6 /**
7 Uses HTMLBars `compile` function to process a string into a compiled template string.
8 The returned string must be passed through `Ember.HTMLBars.template`.
9
10 This is not present in production builds.
11
12 @private
13 @method precompile
14 @param {String} templateString This is the string to be compiled by HTMLBars.
15 */
16 export default function precompile(
17 templateString: string,
18 options?: Partial<EmberPrecompileOptions>
19 ): string;
20}