getItem Method
getItem(name)
Gets an item from within this schema. To get by full name use lookupItem instead.
getItem(name: string): Promise<SchemaItem | undefined>
| Parameter | Type | Description |
|---|---|---|
| name | string |
Returns - Promise<SchemaItem | undefined>
getItem<T extends SchemaItem>(name, itemConstructor)
Gets an item from within this schema. To get by full name use lookupItem instead.
getItem<T extends SchemaItem>(name: string, itemConstructor: T): Promise<InstanceType<T> | undefined>
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| itemConstructor | T |
Returns - Promise<InstanceType<T> | undefined>
Defined in
Last Updated: 28 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.