diff options
author | Michal Klocek <michal.klocek@qt.io> | 2024-05-06 12:49:24 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2024-05-07 09:51:27 +0000 |
commit | 6c04301ecbe57a84d6cc82776b9de9d27fd10076 (patch) | |
tree | ed50ecf908d5dec121b5646c69f9da2e6415965f /chromium/third_party/node/node_modules/lit-html/directives/keyed.d.ts | |
parent | bdd23a0120a16de636b411a50c92cd273c4e80fa (diff) |
Missing node module sources
* lit-html
* lit-element
* lit-reactive-element
* lit-directive
Change-Id: Idb8413411ad45acd9350e5f155c39c9789f15b95
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/558486
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/node/node_modules/lit-html/directives/keyed.d.ts')
-rw-r--r-- | chromium/third_party/node/node_modules/lit-html/directives/keyed.d.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chromium/third_party/node/node_modules/lit-html/directives/keyed.d.ts b/chromium/third_party/node/node_modules/lit-html/directives/keyed.d.ts new file mode 100644 index 00000000000..457237ff8fd --- /dev/null +++ b/chromium/third_party/node/node_modules/lit-html/directives/keyed.d.ts @@ -0,0 +1,27 @@ +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +import { Directive, ChildPart, DirectiveParameters } from '../directive.js'; +declare class Keyed extends Directive { + key: unknown; + render(k: unknown, v: unknown): unknown; + update(part: ChildPart, [k, v]: DirectiveParameters<this>): unknown; +} +/** + * Associates a renderable value with a unique key. When the key changes, the + * previous DOM is removed and disposed before rendering the next value, even + * if the value - such as a template - is the same. + * + * This is useful for forcing re-renders of stateful components, or working + * with code that expects new data to generate new HTML elements, such as some + * animation techniques. + */ +export declare const keyed: (k: unknown, v: unknown) => import("../directive.js").DirectiveResult<typeof Keyed>; +/** + * The type of the class that powers this directive. Necessary for naming the + * directive's return type. + */ +export type { Keyed }; +//# sourceMappingURL=keyed.d.ts.map
\ No newline at end of file |