Documentation / @sw-file-lib/three / ComponentDefinitionResolver
Type Alias: ComponentDefinitionResolver
ts
type ComponentDefinitionResolver = (componentId: string | undefined) => Promise<
| ComponentDefinitionImmutable
| undefined>;Defined in: vehicleAssembler/assetResolver.ts:11
Resolves a component definition from its component ID.
Returns undefined if the component definition cannot be found.
Parameters
| Parameter | Type |
|---|---|
componentId | string | undefined |
Returns
Promise< | ComponentDefinitionImmutable | undefined>