UNPKG

@compas/code-gen

Version:

Generate various boring parts of your server

27 lines (26 loc) 1.07 kB
/** * Check the full structure if a reserved name is used. * * These reserved names are not target language specific, so when adding support for a * new target language, it could be a breaking change for users of other targets. This * is done so a valid structure can be generated to all supported targets. * * @param {import("../generate.js").GenerateContext} generateContext */ export function structureNameChecks(generateContext: import("../generate.js").GenerateContext): void; /** * Execute the group name check on the provided name. * * @param {string} group */ export function structureNameCheckForGroup(group: string): void; /** * Execute the check on this object keys. * * Objects shouldn't use reserved keys, since that breaks the atomic database updates * that we support. * * @param {import("../generated/common/types.js").StructureObjectDefinition} type * @param {Array<string>} typeStack */ export function structureNameChecksForObject(type: import("../generated/common/types.js").StructureObjectDefinition, typeStack: Array<string>): void;