diff --git a/types/global.d.ts b/types/global.d.ts new file mode 100644 index 0000000..d6df91f --- /dev/null +++ b/types/global.d.ts @@ -0,0 +1,6 @@ +import * as Yup from 'yup' +declare module 'yup' { + class ArraySchema extends Yup.array { + unique(format?: string): this + } +} \ No newline at end of file