UNPKG

stable-ts-type

Version:

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

15 lines (14 loc) 390 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const generate_1 = require("../generate"); const inputs = [{ type: 'example-json', value: ` { test: /** xxx */ 'hhh', // hhh } `, }]; (0, generate_1.simpleGenerate)(inputs, { requestInterval: 500 }) .then(code => console.log(code)) .catch(error => console.log(error));