mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 12:16:29 +00:00
8 lines
174 B
TypeScript
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" }));
|