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:
Eng Zer Jun 2023-05-22 09:19:02 +08:00 committed by GitHub
parent ca7b032227
commit 6fec8bd340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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` 方法使所有属性都是可选的。
从这个对象开始:

View File

@ -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: