UNPKG

@manta-style/cli

Version:
45 lines (43 loc) 897 B
import { Type } from "@manta-style/core"; import MantaStyle from "@manta-style/runtime"; import * as MantaStyleHelper from "@manta-style/typescript-helpers"; import { Query, Param, Unsplash } from '@manta-style/helpers'; type Test = Param<'id'>; declare const Test: Type<Test>; export type GET = { /** * @proxy https://jsonplaceholder.typicode.com */ '/todos/:id': { /** * @range 2000 5000 */ haha: number; /** * @example a * @example b */ hoho: string; haha2: Test; /** * @length 10 * @example a * @example b */ zzzz: string[]; yyyy: { /** * @key some * @key nice * @key key */ [key: string]: number; }; }; /** * @proxy https://www.google.com */ '/errorExample': { haha: number }; '/test': { haha: Unsplash }; }; export declare const GET: Type<GET>;