Skip to content

Commit 4a144ce

Browse files
lesmosebelga
authored andcommitted
fix(Types): Schema methods() signature (#171)
Allows any kind of method signature for schema.method() as per the docs.
1 parent 7fa94b1 commit 4a144ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class Schema<T = { [key: string]: any }> {
134134
* }
135135
* ```
136136
*/
137-
readonly methods: { [propName: string]: () => any };
137+
readonly methods: { [propName: string]: (...args: any[]) => any };
138138

139139
/**
140140
* Getter / Setter for Schema paths.

0 commit comments

Comments
 (0)