securityos/node_modules/rfdc/index.test-d.ts

8 lines
174 B
TypeScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import { expectType } from 'tsd';
import rfdc = require('.');
const clone = rfdc();
expectType<number>(clone(5));
expectType<{ lorem: string }>(clone({ lorem: "ipsum" }));