IOTConnect-Web/node_modules/rfdc/index.test-d.ts
2024-05-09 09:49:52 +08:00

8 lines
174 B
TypeScript

import { expectType } from 'tsd';
import rfdc = require('.');
const clone = rfdc();
expectType<number>(clone(5));
expectType<{ lorem: string }>(clone({ lorem: "ipsum" }));