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

14 lines
273 B
TypeScript
Raw Normal View History

2024-08-09 12:04:48 +00:00
import { expectType } from 'tsd';
import rfdc = require('.');
const clone = rfdc();
expectType<number>(clone(5));
expectType<{ lorem: string }>(clone({ lorem: "ipsum" }));
const cloneHandlers = rfdc({
constructorHandlers: [
[RegExp, (o) => new RegExp(o)],
],
})