Skip to content

Commit

Permalink
fix(Types): Schema methods() signature (#171)
Browse files Browse the repository at this point in the history
Allows any kind of method signature for schema.method() as per the docs.
  • Loading branch information
lesmo authored and sebelga committed Sep 9, 2019
1 parent 7fa94b1 commit 4a144ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class Schema<T = { [key: string]: any }> {
* }
* ```
*/
readonly methods: { [propName: string]: () => any };
readonly methods: { [propName: string]: (...args: any[]) => any };

/**
* Getter / Setter for Schema paths.
Expand Down

0 comments on commit 4a144ce

Please sign in to comment.