mirror of https://github.com/cupcakearmy/zod.git
docs: fix typo in link fragment (#2329)
This commit corrects the wrong #partialt fragment identifier to #partialtype. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
parent
ca7b032227
commit
6fec8bd340
|
@ -1183,7 +1183,7 @@ type NoIDRecipe = z.infer<typeof NoIDRecipe>;
|
|||
|
||||
### `.partial`
|
||||
|
||||
Inspired by the built-in TypeScript utility type [Partial](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialt), the `.partial` method makes all properties optional.
|
||||
Inspired by the built-in TypeScript utility type [Partial](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype), the `.partial` method makes all properties optional.
|
||||
|
||||
Starting from this object:
|
||||
|
||||
|
|
|
@ -576,7 +576,7 @@ type NoIDRecipe = z.infer<typeof NoIDRecipe>;
|
|||
|
||||
### `.partial`
|
||||
|
||||
受 TypeScript 内置的实用类型[Partial](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialt)的启发, `.partial` 方法使所有属性都是可选的。
|
||||
受 TypeScript 内置的实用类型[Partial](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)的启发, `.partial` 方法使所有属性都是可选的。
|
||||
|
||||
从这个对象开始:
|
||||
|
||||
|
|
|
@ -1183,7 +1183,7 @@ type NoIDRecipe = z.infer<typeof NoIDRecipe>;
|
|||
|
||||
### `.partial`
|
||||
|
||||
Inspired by the built-in TypeScript utility type [Partial](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialt), the `.partial` method makes all properties optional.
|
||||
Inspired by the built-in TypeScript utility type [Partial](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype), the `.partial` method makes all properties optional.
|
||||
|
||||
Starting from this object:
|
||||
|
||||
|
|
Loading…
Reference in New Issue