UNPKG

@alexop/openapi-zod-client

Version:

[![Screenshot 2022-11-12 at 18 52 25](https://user-images.githubusercontent.com/47224540/201487856-ffc4c862-6f31-4de1-8ef1-3981fabf3416.png)](https://openapi-zod-client.vercel.app/)

14 lines (13 loc) 443 B
import type { OpenAPIObject, SchemaObject } from "openapi3-ts"; type RefInfo = { ref: string; name: string; normalized: string; }; export declare const makeSchemaResolver: (doc: OpenAPIObject) => { getSchemaByRef: (ref: string) => SchemaObject; resolveRef: (ref: string) => RefInfo; resolveSchemaName: (normalized: string) => RefInfo; }; export type DocumentResolver = ReturnType<typeof makeSchemaResolver>; export {};