@microsoft/fast-element > FASTElementDefinition > compose
FASTElementDefinition.compose() method
Creates an instance of FASTElementDefinition.
Signature:
static compose<TType extends Constructable<HTMLElement> = Constructable<HTMLElement>>(type: TType, nameOrDef?: string | PartialFASTElementDefinition): FASTElementDefinition<TType>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
TType |
The type this definition is being created for. |
|
nameOrDef |
string | PartialFASTElementDefinition |
(Optional) The name of the element to define or a config object that describes the element to define. |
Returns:
FASTElementDefinition<TType>