Skip to main content

@microsoft/fast-element > FASTElementDefinition > (constructor)

FASTElementDefinition.(constructor)

Creates an instance of FASTElementDefinition.

Signature:
constructor(type: TType, nameOrConfig?: PartialFASTElementDefinition | string);

Parameters

ParameterTypeDescription
typeTTypeThe type this definition is being created for.
nameOrConfigPartialFASTElementDefinition | stringThe name of the element to define or a config object that describes the element to define.