Webroute

@webroute/oasType aliases

ParseSpec

ParseSpec<T>: Simplify<UnionToIntersection<{ [Path in keyof T["paths"]]: ParsePath<T, Path> }[keyof T["paths"]]>>

Parses an OAS definition from it's type declaration.

Note: this requires the spec be placed into a .d.ts file to achieve the necessary type strictness.

Type Parameters

Type Parameter
T extends oas31.OpenAPIObject

On this page