@webroute/oasType aliases
ParseSpec
ParseSpec<
T
>:Simplify
<UnionToIntersection
<{ [Path in keyof T["paths"]]: ParsePath<T, Path> }
[keyofT
["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 |