import { expectType } from 'tsd'; import rfdc = require('.'); const clone = rfdc(); expectType(clone(5)); expectType<{ lorem: string }>(clone({ lorem: "ipsum" })); const cloneHandlers = rfdc({ constructorHandlers: [ [RegExp, (o) => new RegExp(o)], ], })