Skip to content

Commit

Permalink
fix(types): meta() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Dec 10, 2020
1 parent e785e1a commit e41040a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default abstract class BaseSchema<
}

meta(): Record<string, unknown> | undefined;
meta(obj: Record<string, unknown>): void;
meta(obj: Record<string, unknown>): this;
meta(...args: [Record<string, unknown>?]) {
if (args.length === 0) return this.spec.meta;

Expand Down

0 comments on commit e41040a

Please sign in to comment.