element-vir
Version:
Heroic. Reactive. Declarative. Type safe. Web components without compromise.
9 lines (8 loc) • 442 B
TypeScript
export declare const MyWithUpdateState: import("element-vir").DeclarativeElementDefinition<"my-with-update-state", {}, {
username: string;
/**
* Use "as" to create state properties that can be types other than the initial value's
* type. This is particularly useful when, as below, the initial value is undefined.
*/
email: string | undefined;
}, {}, "my-with-update-state-", "my-with-update-state-", readonly []>;