diff --git a/src/schema.ts b/src/schema.ts index 7ffaccd91..fac5529bb 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -191,7 +191,7 @@ export default abstract class BaseSchema< } meta(): Record | undefined; - meta(obj: Record): void; + meta(obj: Record): this; meta(...args: [Record?]) { if (args.length === 0) return this.spec.meta;