@compas/code-gen
Version:
Generate various boring parts of your server
13 lines (12 loc) • 697 B
TypeScript
/**
* Resolve some property from the provided type, prioritizing the settings on the
* reference type and then checking the referenced type. Can be called even if the type
* is not a reference.
*
* @param {import("../generate.js").GenerateContext} generateContext
* @param {import("../generated/common/types.js").StructureTypeSystemDefinition} type
* @param {Array<(string | number)>} accessPath
* @param {any} [defaultValue]
* @returns {any}
*/
export function referenceUtilsGetProperty(generateContext: import("../generate.js").GenerateContext, type: import("../generated/common/types.js").StructureTypeSystemDefinition, accessPath: Array<(string | number)>, defaultValue?: any): any;