Skip to content

Commit de46c13

Browse files
docs(validation): seperate main paragraph from hint session
1 parent 4639067 commit de46c13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/techniques/validation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ export class UpdateCatDto extends PartialType(CreateCatDto) {}
317317
```
318318

319319
> info **Hint** The `PartialType()` function is imported from the `@nestjs/mapped-types` package.
320+
320321
The `PickType()` function constructs a new type (class) by picking a set of properties from an input type. For example, suppose we start with a type like:
321322

322323
```typescript
@@ -334,6 +335,7 @@ export class UpdateCatAgeDto extends PickType(CreateCatDto, ['age'] as const) {}
334335
```
335336

336337
> info **Hint** The `PickType()` function is imported from the `@nestjs/mapped-types` package.
338+
337339
The `OmitType()` function constructs a type by picking all properties from an input type and then removing a particular set of keys. For example, suppose we start with a type like:
338340

339341
```typescript
@@ -351,6 +353,7 @@ export class UpdateCatDto extends OmitType(CreateCatDto, ['name'] as const) {}
351353
```
352354

353355
> info **Hint** The `OmitType()` function is imported from the `@nestjs/mapped-types` package.
356+
354357
The `IntersectionType()` function combines two types into one new type (class). For example, suppose we start with two types like:
355358

356359
```typescript

0 commit comments

Comments
 (0)