7 lines
174 B
TypeScript
Executable file
7 lines
174 B
TypeScript
Executable file
import { expectType } from 'tsd';
|
|
import rfdc = require('.');
|
|
|
|
const clone = rfdc();
|
|
|
|
expectType<number>(clone(5));
|
|
expectType<{ lorem: string }>(clone({ lorem: "ipsum" }));
|