UNPKG

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