getSchemaItemSync Method
getSchemaItemSync<T extends SchemaItem>(schemaNameOrKey, itemNameOrCtor?)
getSchemaItemSync<T extends SchemaItem>(schemaNameOrKey: string | SchemaItemKey, itemNameOrCtor?: T): undefined | SchemaItem
Parameter | Type | Description |
---|---|---|
schemaNameOrKey | string | SchemaItemKey | |
itemNameOrCtor | T |
Returns - undefined | SchemaItem
getSchemaItemSync<T extends SchemaItem>(schemaNameOrKey, itemNameOrCtor, itemConstructor?)
getSchemaItemSync<T extends SchemaItem>(schemaNameOrKey: string, itemNameOrCtor: string, itemConstructor?: T): undefined | InstanceType<T>
Parameter | Type | Description |
---|---|---|
schemaNameOrKey | string | |
itemNameOrCtor | string | |
itemConstructor | T |
Returns - undefined | InstanceType<T>
getSchemaItemSync<T extends SchemaItem>(schemaNameOrKey, itemNameOrCtor, itemConstructor?)
getSchemaItemSync<T extends SchemaItem>(schemaNameOrKey: string, itemNameOrCtor: string, itemConstructor?: T): undefined | SchemaItem
Parameter | Type | Description |
---|---|---|
schemaNameOrKey | string | |
itemNameOrCtor | string | |
itemConstructor | T |
Returns - undefined | SchemaItem
getSchemaItemSync<T extends SchemaItem>(schemaNameOrKey, itemNameOrCtor?)
Gets the schema item from the specified schema if it exists in this SchemaContext. Will return undefined if the cached schema is partially loaded. Use getSchemaItem to await until the schema is completely loaded.
getSchemaItemSync<T extends SchemaItem>(schemaNameOrKey: string | SchemaItemKey, itemNameOrCtor?: T): undefined | InstanceType<T>
@returns The requested schema item, or undefined
if the item could not be found.
@example
Parameter | Type | Description |
---|---|---|
schemaNameOrKey | string | SchemaItemKey | |
itemNameOrCtor | T |
Returns - undefined | InstanceType<T>
The requested schema item, or undefined
if the item could not be found.
Defined in
- ecschema-metadata/src/Context.ts Line 477
Last Updated: 01 August, 2025