diff --git a/website/pages/docs/misc.mdx b/website/pages/docs/misc.mdx index f78dd0860d..640855ce2d 100644 --- a/website/pages/docs/misc.mdx +++ b/website/pages/docs/misc.mdx @@ -187,9 +187,9 @@ Deep copy functions. When you want to copy an instance, just call `typia.misc.clone()` function. It would perform deep copy including nested objects, so you can get a new instance with same values. Also, if you want type safe deep copy function, you can use `typia.misc.isClone()`, `typia.misc.assertClone()` or `typia.misc.validateClone()` functions instead. - - `typia.misc.assertClone()`: [`typia.assert()`](../validators/assert) + `typia.misc.clone()` - - `typia.misc.isClone()`: [`typia.is()`](../validators/is) + `typia.misc.clone()` - - `typia.misc.validateClone()`: [`typia.validate()`](../validators/validate) + `typia.misc.clone()` + - `typia.misc.assertClone()`: [`typia.assert()`](./validators/assert) + `typia.misc.clone()` + - `typia.misc.isClone()`: [`typia.is()`](./validators/is) + `typia.misc.clone()` + - `typia.misc.validateClone()`: [`typia.validate()`](./validators/validate) + `typia.misc.clone()` @@ -627,9 +627,9 @@ Deep prune functions. When you want to remove every extra properties that are not defined in the type including nested objects, you can use `typia.misc.prune()` function. Also, if you want to perform type safe pruning, you can use `typia.misc.isPrune()`, `typia.misc.assertPrune()` or `typia.misc.validatePrune()` functions instead. - - `typia.misc.isPrune()`: [`typia.is()`](../validators/is) + `typia.misc.prune()` - - `typia.misc.assertPrune()`: [`typia.assert()`](../validators/assert) + `typia.misc.prune()` - - `typia.misc.validatePrune()`: [`typia.validate()`](../validators/validate) + `typia.misc.prune()` + - `typia.misc.isPrune()`: [`typia.is()`](./validators/is) + `typia.misc.prune()` + - `typia.misc.assertPrune()`: [`typia.assert()`](./validators/assert) + `typia.misc.prune()` + - `typia.misc.validatePrune()`: [`typia.validate()`](./validators/validate) + `typia.misc.prune()` @@ -1238,9 +1238,9 @@ Convert every property names of nested objects to be camel case notation. When you need type safe functions, you can utilize below them. - - `typia.notations.assertCamel()`: [`typia.assert()`](../validators/assert) + `typia.notations.camel()` - - `typia.notations.isCamel`: [`typia.is()`](../validators/is) + `typia.notations.camel()` - - `typia.notations.validateCamel`: [`typia.validate()`](../validators/validate) + `typia.notations.camel()` + - `typia.notations.assertCamel()`: [`typia.assert()`](./validators/assert) + `typia.notations.camel()` + - `typia.notations.isCamel`: [`typia.is()`](./validators/is) + `typia.notations.camel()` + - `typia.notations.validateCamel`: [`typia.validate()`](./validators/validate) + `typia.notations.camel()` @@ -1461,9 +1461,9 @@ Convert every property names of nested objects to be pascal case notation. When you need type safe functions, you can utilize below them. - - `typia.notations.assertPascal()`: [`typia.assert()`](../validators/assert) + `typia.notations.pascal()` - - `typia.notations.isPascal`: [`typia.is()`](../validators/is) + `typia.notations.pascal()` - - `typia.notations.validatePascal`: [`typia.validate()`](../validators/validate) + `typia.notations.pascal()` + - `typia.notations.assertPascal()`: [`typia.assert()`](./validators/assert) + `typia.notations.pascal()` + - `typia.notations.isPascal`: [`typia.is()`](./validators/is) + `typia.notations.pascal()` + - `typia.notations.validatePascal`: [`typia.validate()`](./validators/validate) + `typia.notations.pascal()` @@ -1722,9 +1722,9 @@ Convert every property names of nested objects to be snake case notation. When you need type safe functions, you can utilize below them. - - `typia.notations.assertSnake()`: [`typia.assert()`](../validators/assert) + `typia.notations.snake()` - - `typia.notations.isSnake`: [`typia.is()`](../validators/is) + `typia.notations.snake()` - - `typia.notations.validateSnake`: [`typia.validate()`](../validators/validate) + `typia.notations.snake()` + - `typia.notations.assertSnake()`: [`typia.assert()`](./validators/assert) + `typia.notations.snake()` + - `typia.notations.isSnake`: [`typia.is()`](./validators/is) + `typia.notations.snake()` + - `typia.notations.validateSnake`: [`typia.validate()`](./validators/validate) + `typia.notations.snake()` @@ -1970,9 +1970,9 @@ By the way, as URL query is not enough to express complex data structures, `typi Also, `typia.http.query()` function does not perform validation about the decoded value. Therefore, if you can't sure that input data is following the `T` type, it would better to call one of below functions intead. - - `typia.http.assertQuery()`: [`typia.assert()`](../validators/assert) + `typia.http.query()` - - `typia.http.isQuery()`: [`typia.is()`](../validators/is) + `typia.http.query()` - - `typia.http.validateQuery()`: [`typia.validate()`](../validators/validate) + `typia.http.query()` + - `typia.http.assertQuery()`: [`typia.assert()`](./validators/assert) + `typia.http.query()` + - `typia.http.isQuery()`: [`typia.is()`](./validators/is) + `typia.http.query()` + - `typia.http.validateQuery()`: [`typia.validate()`](./validators/validate) + `typia.http.query()` @@ -2241,9 +2241,9 @@ By the way, as HTTP headers are not enough to express complex data structures, ` Also, `typia.http.headers()` function does not perform validation about the decoded value. Therefore, if you can't sure that input data is following the `T` type, it would better to call one of below functions intead. - - `typia.http.assertHeaders()`: [`typia.assert()`](../validators/assert) + `typia.http.headers()` - - `typia.http.isHeaders()`: [`typia.is()`](../validators/is) + `typia.http.headers()` - - `typia.http.validateHeaders()`: [`typia.validate()`](../validators/validate) + `typia.http.headers()` + - `typia.http.assertHeaders()`: [`typia.assert()`](./validators/assert) + `typia.http.headers()` + - `typia.http.isHeaders()`: [`typia.is()`](./validators/is) + `typia.http.headers()` + - `typia.http.validateHeaders()`: [`typia.validate()`](./validators/validate) + `typia.http.headers()` @@ -2424,4 +2424,4 @@ import typia from "typia"; }; ``` - \ No newline at end of file + diff --git a/website/pages/docs/validators/assert.mdx b/website/pages/docs/validators/assert.mdx index 247a1048a5..088a015a64 100644 --- a/website/pages/docs/validators/assert.mdx +++ b/website/pages/docs/validators/assert.mdx @@ -440,7 +440,7 @@ import { v4 } from "uuid"; ]}> ```typescript -export function assertGurad(input: T): asserts inut is T; +export function assertGuard(input: T): asserts inut is T; export function assertGuard(input: unknown): asserts input is T; export function assertGuardEquals(input: T): asserts inut is T;