Skip to content

Commit 1e71068

Browse files
janechuCopilot
andcommitted
fix(fast-html): add AttributeMapOption type to template.ts
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 58314b7 commit 1e71068

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/fast-html/src/components/template.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,22 @@ export const ObserverMapOption = {
5656
export type ObserverMapOption =
5757
(typeof ObserverMapOption)[keyof typeof ObserverMapOption];
5858

59+
export const AttributeMapOption = {
60+
all: "all",
61+
} as const;
62+
63+
/**
64+
* Type for the attributeMap element option.
65+
*/
66+
export type AttributeMapOption =
67+
(typeof AttributeMapOption)[keyof typeof AttributeMapOption];
68+
5969
/**
6070
* Element options the TemplateElement will use to update the registered element
6171
*/
6272
export interface ElementOptions {
6373
observerMap?: ObserverMapOption;
74+
attributeMap?: AttributeMapOption;
6475
}
6576

6677
/**

0 commit comments

Comments
 (0)