Skip to content

Commit 37816b1

Browse files
committed
Removed redundant yup module declaration
1 parent b99966e commit 37816b1

File tree

1 file changed

+0
-57
lines changed
  • src/lib/adapters/yup-to-json-schema/methods

1 file changed

+0
-57
lines changed

src/lib/adapters/yup-to-json-schema/methods/index.ts

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -9,63 +9,6 @@ type YupParams = {
99
Schema: any;
1010
};
1111

12-
declare module 'yup' {
13-
interface ArraySchema<TIn, TContext, TDefault, TFlags> {
14-
example(example: any): this;
15-
examples(examples: any[]): this;
16-
description(description: string): this;
17-
jsonSchema(callback: JsonSchemaCallback): this;
18-
}
19-
interface BooleanSchema<TType, TContext, TDefault, TFlags> {
20-
example(example: any): this;
21-
examples(examples: any[]): this;
22-
description(description: string): this;
23-
jsonSchema(callback: JsonSchemaCallback): this;
24-
}
25-
interface DateSchema<TType, TContext, TDefault, TFlags> {
26-
example(example: any): this;
27-
examples(examples: any[]): this;
28-
description(description: string): this;
29-
jsonSchema(callback: JsonSchemaCallback): this;
30-
}
31-
interface LazySchema<TType, TContext, TDefault, TFlags> {
32-
example(example: any): this;
33-
examples(examples: any[]): this;
34-
description(description: string): this;
35-
jsonSchema(callback: JsonSchemaCallback): this;
36-
}
37-
interface MixedSchema<TType, TContext, TDefault, TFlags> {
38-
example(example: any): this;
39-
examples(examples: any[]): this;
40-
description(description: string): this;
41-
jsonSchema(callback: JsonSchemaCallback): this;
42-
}
43-
interface NumberSchema<TType, TContext, TDefault, TFlags> {
44-
example(example: any): this;
45-
examples(examples: any[]): this;
46-
description(description: string): this;
47-
jsonSchema(callback: JsonSchemaCallback): this;
48-
}
49-
interface ObjectSchema<TIn, TContext, TDefault, TFlags> {
50-
example(example: any): this;
51-
examples(examples: any[]): this;
52-
description(description: string): this;
53-
jsonSchema(callback: JsonSchemaCallback): this;
54-
}
55-
interface StringSchema<TType, TContext, TDefault, TFlags> {
56-
example(example: any): this;
57-
examples(examples: any[]): this;
58-
description(description: string): this;
59-
jsonSchema(callback: JsonSchemaCallback): this;
60-
}
61-
interface TupleSchema<TType, TContext, TDefault, TFlags> {
62-
example(example: any): this;
63-
examples(examples: any[]): this;
64-
description(description: string): this;
65-
jsonSchema(callback: JsonSchemaCallback): this;
66-
}
67-
}
68-
6912
function addMethod(yup: YupParams, name: string) {
7013
yup.addMethod(yup.Schema, name, function (this: AnySchema, value: any): AnySchema {
7114
const meta: Meta = this.describe().meta || {};

0 commit comments

Comments
 (0)