UNPKG

@compas/code-gen

Version:

Generate various boring parts of your server

24 lines (23 loc) 1.38 kB
/** * Write wrapper context to the common directory * * @param {import("../generate.js").GenerateContext} generateContext */ export function reactQueryGenerateCommonFile(generateContext: import("../generate.js").GenerateContext): void; /** * Get the api client file * * @param {import("../generate.js").GenerateContext} generateContext * @param {import("../generated/common/types.js").StructureRouteDefinition} route * @returns {import("../file/context.js").GenerateFile} */ export function reactQueryGetApiClientFile(generateContext: import("../generate.js").GenerateContext, route: import("../generated/common/types.js").StructureRouteDefinition): import("../file/context.js").GenerateFile; /** * Generate the api client hooks * * @param {import("../generate.js").GenerateContext} generateContext * @param {import("../file/context.js").GenerateFile} file * @param {import("../../types/advanced-types.d.ts").NamedType<import("../generated/common/types.d.ts").StructureRouteDefinition>} route * @param {Record<string, string>} contextNames */ export function reactQueryGenerateFunction(generateContext: import("../generate.js").GenerateContext, file: import("../file/context.js").GenerateFile, route: import("../../types/advanced-types.d.ts").NamedType<import("../generated/common/types.d.ts").StructureRouteDefinition>, contextNames: Record<string, string>): void;