first commit
This commit is contained in:
26
node_modules/lit-html/directives/template-content.d.ts
generated
vendored
Normal file
26
node_modules/lit-html/directives/template-content.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
import { noChange } from '../lit-html.js';
|
||||
import { Directive, PartInfo } from '../directive.js';
|
||||
declare class TemplateContentDirective extends Directive {
|
||||
private _previousTemplate?;
|
||||
constructor(partInfo: PartInfo);
|
||||
render(template: HTMLTemplateElement): DocumentFragment | typeof noChange;
|
||||
}
|
||||
/**
|
||||
* Renders the content of a template element as HTML.
|
||||
*
|
||||
* Note, the template should be developer controlled and not user controlled.
|
||||
* Rendering a user-controlled template with this directive
|
||||
* could lead to cross-site-scripting vulnerabilities.
|
||||
*/
|
||||
export declare const templateContent: (template: HTMLTemplateElement) => import("../directive.js").DirectiveResult<typeof TemplateContentDirective>;
|
||||
/**
|
||||
* The type of the class that powers this directive. Necessary for naming the
|
||||
* directive's return type.
|
||||
*/
|
||||
export type { TemplateContentDirective };
|
||||
//# sourceMappingURL=template-content.d.ts.map
|
Reference in New Issue
Block a user