@lwc/template-compiler 6.1.1 → 6.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3,6 +3,18 @@ import { TemplateCompileResult, TemplateParseResult } from './shared/types';
3
3
  export * from './shared/types';
4
4
  export { CustomRendererConfig, CustomRendererElementConfig } from './shared/renderer-hooks';
5
5
  export { Config } from './config';
6
+ /**
7
+ * Parses HTML markup into an AST
8
+ * @param source HTML markup to parse
9
+ * @param config HTML template compilation config
10
+ * @returns Object containing the AST
11
+ */
6
12
  export declare function parse(source: string, config?: Config): TemplateParseResult;
7
13
  export { compile };
14
+ /**
15
+ * Compiles a LWC template to JavaScript source code consumable by the engine.
16
+ * @param source HTML markup to compile
17
+ * @param config HTML template compilation config
18
+ * @returns Object containing the compiled code and any warnings that occurred.
19
+ */
8
20
  export default function compile(source: string, config: Config): TemplateCompileResult;