From 33a235c9f1b6a1bf5db1e9e823dd66519afcb85f Mon Sep 17 00:00:00 2001 From: Junseo Park Date: Mon, 22 Feb 2021 22:31:46 +0900 Subject: [PATCH] types: added yup unique function type declare --- types/global.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 types/global.d.ts 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