fix: harden generated identifiers and types
This commit is contained in:
@@ -181,6 +181,7 @@ export function generateApplicationTypes(
|
||||
.map((name) => join(root, name))
|
||||
.find(existsSync);
|
||||
const code = `// AUTO-GENERATED by \`wrnexus generate types\` - do not edit.
|
||||
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
||||
declare namespace WRNexusGenerated {
|
||||
type ApiContract<T> = T extends import("@wrnexus/core").DefinedEndpoint<infer I, infer O>
|
||||
? { input: I; output: O }
|
||||
|
||||
Reference in New Issue
Block a user