@microsoft/fast-element > TypeRegistry > getByType
TypeRegistry.getByType() method
Gets a definition by type.
Signature:
getByType(key: Function): TDefinition | undefined;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
Function |
The type to retrieve the definition for. |
Returns:
TDefinition | undefined