UNPKG

stable-ts-type

Version:

Obtain the most stable type code of 'typescript' through multiple network requests

40 lines (39 loc) 928 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const generate_1 = require("../generate"); // type Nullable<Data extends Record<any, any>> = { // [K in keyof Data]?: Nullable<Data[K]> | null; // }; (0, generate_1.generate)([ { type: 'request', value: { url: 'https://m.hupu.com/api/v2/bbs/walkingStreet/threads?page=1', method: 'GET', }, }, { type: 'request', value: 'curl https://m.hupu.com/api/v2/bbs/walkingStreet/threads?page=2', }, { type: 'request', value: 'curl https://m.hupu.com/api/v2/bbs/walkingStreet/threads?page=3', }, { type: 'example-json', value: { test: true, }, }, { type: 'example-json', value: ` { test: /** xxx */ 'hhh', // hhh } `, }, ]).then(res => { console.log(res); });