You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213
  1. import { expectType } from 'tsd';
  2. import rfdc = require('.');
  3. const clone = rfdc();
  4. expectType<number>(clone(5));
  5. expectType<{ lorem: string }>(clone({ lorem: "ipsum" }));
  6. const cloneHandlers = rfdc({
  7. constructorHandlers: [
  8. [RegExp, (o) => new RegExp(o)],
  9. ],
  10. })