ChainGraph API Documentation / @badaitech/chaingraph-types / getObjectSchema
Function: getObjectSchema()
getObjectSchema(
target):IObjectSchema<Record<string,IPortConfig>> |undefined
Defined in: packages/chaingraph-types/src/decorator/object-schema.decorator.ts:113
Helper function to retrieve the stored object schema from a decorated class.
Parameters
target
any
The class whose schema should be retrieved.
Returns
IObjectSchema<Record<string, IPortConfig>> | undefined
The object schema or undefined if not found.