@microsoft/fast-element > FASTElementConstructor > from
FASTElementConstructor.from() method
Creates a new FASTElement base class inherited from the provided base type.
Signature:
from<TBase extends typeof HTMLElement>(BaseType: TBase): {
new (): InstanceType<TBase> & FASTElement;
};
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
BaseType |
TBase |
The base element type to inherit from. |
Returns:
{ new (): InstanceType<TBase> & FASTElement; }