Skip to content

Commit b8da6cb

Browse files
authored
Wrong imports of ArrayType replaced with Type
1 parent c3d0030 commit b8da6cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ When you are using arrays you must provide a type of the object that array conta
530530
This type, you specify in a `@Type()` decorator:
531531

532532
```typescript
533-
import {ArrayType} from "class-transformer";
533+
import {Type} from "class-transformer";
534534

535535
export class Photo {
536536

@@ -546,7 +546,7 @@ export class Photo {
546546
You can also use custom array types:
547547

548548
```typescript
549-
import {ArrayType} from "class-transformer";
549+
import {Type} from "class-transformer";
550550

551551
export class AlbumCollection extends Array<Album> {
552552
// custom array functions ...

0 commit comments

Comments
 (0)