@hedhog/setting 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAIpB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
|
package/dist/dto/delete.dto.js
CHANGED
@@ -16,9 +16,8 @@ class DeleteDTO {
|
|
16
16
|
exports.DeleteDTO = DeleteDTO;
|
17
17
|
__decorate([
|
18
18
|
(0, class_validator_1.IsArray)(),
|
19
|
-
(0, class_validator_1.ArrayNotEmpty)(),
|
20
19
|
(0, class_validator_1.ArrayMinSize)(1),
|
21
|
-
(0, class_validator_1.
|
20
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
22
21
|
__metadata("design:type", Array)
|
23
22
|
], DeleteDTO.prototype, "ids", void 0);
|
24
23
|
//# sourceMappingURL=delete.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,SAAS;CAKrB;AALD,8BAKC;AADC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sCACR"}
|
package/package.json
CHANGED
package/src/dto/delete.dto.ts
CHANGED
@@ -1,14 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
ArrayMinSize,
|
3
|
-
ArrayNotEmpty,
|
4
|
-
IsArray,
|
5
|
-
IsNumber,
|
6
|
-
} from 'class-validator';
|
1
|
+
import { ArrayMinSize, IsArray, IsInt } from 'class-validator';
|
7
2
|
|
8
3
|
export class DeleteDTO {
|
9
4
|
@IsArray()
|
10
|
-
@ArrayNotEmpty()
|
11
5
|
@ArrayMinSize(1)
|
12
|
-
@
|
6
|
+
@IsInt({ each: true })
|
13
7
|
ids: number[];
|
14
8
|
}
|