We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f85f29 commit 605da5bCopy full SHA for 605da5b
2 files changed
grimoire/modules/schemas/src/features/index.ts
@@ -0,0 +1,5 @@
1
+export const schemaFeatures = {
2
+ schemas: "schemas",
3
+ } as const;
4
+
5
+ export type SchemaFeatures = typeof schemaFeatures;
grimoire/modules/schemas/src/types/index.d.ts
@@ -0,0 +1,15 @@
+import type { z } from 'zod'
+export type AnyZodSchema = z.ZodTypeAny
+export interface SchemaDefinition<T extends AnyZodSchema = AnyZodSchema> {
+ schema: T
6
+ description?: string
7
+}
8
9
+export type SchemaRegistry = Map<string, SchemaDefinition>
10
11
+declare module 'nitro/types' {
12
+ interface NitroApp {
13
+ schemaRegistry: SchemaRegistry
14
+ }
15
0 commit comments