Skip to main content

@microsoft/fast-element > FASTElement

FASTElement variable

A minimal base class for FASTElements that also provides static helpers for working with FASTElements.

Signature:
FASTElement: (new () => HTMLElement & FASTElement) & {
from<TBase extends {
new (): HTMLElement;
prototype: HTMLElement;
}>(BaseType: TBase): new () => InstanceType<TBase> & FASTElement;
define<TType extends Function>(type: TType, nameOrDef?: string | PartialFASTElementDefinition | undefined): TType;
}