diff --git a/mod.ts b/mod.ts index 92457d6..55f1af3 100644 --- a/mod.ts +++ b/mod.ts @@ -188,11 +188,11 @@ function _readonly(field: T): _readonly { * //-> } * ``` */ -function _partial

(input: _object

) { +// @ts-expect-error; object needs distinct/definitive type else array overlap +function _partial

(input: _object

): _object> { // deno-lint-ignore no-unused-vars let { required, ...schema } = input; - // @ts-expect-error; needs distinct type else array overlap - return schema as _object>; + return schema; } /**