tering-serieuze-types 1.8.2 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { City } from './src';
2
+
1
3
  export * from './interfaces';
2
4
  export * from './src';
3
5
 
@@ -14,9 +16,8 @@ export type FlicButtonBatteryPayload = FlicButtonPayload & {
14
16
  };
15
17
 
16
18
  export type BrandweerPayload = {
17
- city: string;
19
+ city: City;
18
20
  title: string;
19
21
  description: string;
20
22
  pubDate: Date;
21
23
  };
22
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tering-serieuze-types",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "Tering serieuze types",
5
5
  "author": "Frank",
6
6
  "repository": {
package/src/emulator.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { ApiProperty } from '@nestjs/swagger';
2
2
 
3
- export enum Cities {
3
+ export enum City {
4
4
  Waalwijk = 'Waalwijk',
5
5
  Sprang = 'Sprang-Capelle',
6
6
  }
7
7
 
8
8
  export class EmulateFireDepartmentDto {
9
- @ApiProperty({ type: String, enum: Cities, example: `'${Cities.Waalwijk}' or '${Cities.Sprang}'` })
10
- city: Cities;
9
+ @ApiProperty({ enum: City, example: `'${City.Waalwijk}' or '${City.Sprang}'` })
10
+ city: City;
11
11
  }