Skip to content

Type alias: MetadataFunction

core.MetadataFunction

Ƭ MetadataFunction: (context: ExecutionContext, search: string, formulaContext?: MetadataContext) => Promise<MetadataFormulaResultType | MetadataFormulaResultType[] | ArraySchema | ObjectSchema<any, any>>

Type declaration

▸ (context, search, formulaContext?): Promise<MetadataFormulaResultType | MetadataFormulaResultType[] | ArraySchema | ObjectSchema<any, any>>

A JavaScript function that can implement a MetadataFormulaDef.

Parameters
Name Type
context ExecutionContext
search string
formulaContext? MetadataContext
Returns

Promise<MetadataFormulaResultType | MetadataFormulaResultType[] | ArraySchema | ObjectSchema<any, any>>

Defined in

api.ts:1088