@@ -21,7 +21,6 @@ export type DefinitionsDevelopment = {
21
21
action : "rebuild" | "sync" | "sync+restart" ;
22
22
target ?: string ;
23
23
} [ ] ;
24
- [ k : string ] : unknown ;
25
24
} & Development ;
26
25
export type Development = {
27
26
watch ?: {
@@ -30,7 +29,6 @@ export type Development = {
30
29
action : "rebuild" | "sync" | "sync+restart" ;
31
30
target ?: string ;
32
31
} [ ] ;
33
- [ k : string ] : unknown ;
34
32
} | null ;
35
33
export type DefinitionsDeployment = {
36
34
mode ?: string ;
@@ -150,6 +148,15 @@ export type Deployment = {
150
148
max_replicas_per_node ?: number | string ;
151
149
} ;
152
150
} | null ;
151
+ export type ExtraHosts =
152
+ | {
153
+ /**
154
+ * This interface was referenced by `undefined`'s JSON-Schema definition
155
+ * via the `patternProperty` ".+".
156
+ */
157
+ [ k : string ] : string | unknown [ ] ;
158
+ }
159
+ | string [ ] ;
153
160
export type ServiceConfigOrSecret = (
154
161
| string
155
162
| {
@@ -365,7 +372,7 @@ export interface DefinitionsService {
365
372
pull ?: boolean | string ;
366
373
target ?: string ;
367
374
shm_size ?: number | string ;
368
- extra_hosts ?: ListOrDict ;
375
+ extra_hosts ?: ExtraHosts ;
369
376
isolation ?: string ;
370
377
privileged ?: boolean | string ;
371
378
secrets ?: ServiceConfigOrSecret ;
@@ -416,7 +423,14 @@ export interface DefinitionsService {
416
423
} ;
417
424
} ;
418
425
device_cgroup_rules ?: ListOfStrings ;
419
- devices ?: string [ ] ;
426
+ devices ?: (
427
+ | string
428
+ | {
429
+ source : string ;
430
+ target ?: string ;
431
+ permissions ?: string ;
432
+ }
433
+ ) [ ] ;
420
434
dns ?: StringOrList ;
421
435
dns_opt ?: string [ ] ;
422
436
dns_search ?: StringOrList ;
@@ -432,7 +446,7 @@ export interface DefinitionsService {
432
446
file ?: string ;
433
447
} ;
434
448
external_links ?: string [ ] ;
435
- extra_hosts ?: ListOrDict ;
449
+ extra_hosts ?: ExtraHosts ;
436
450
group_add ?: ( string | number ) [ ] ;
437
451
healthcheck ?: DefinitionsHealthcheck ;
438
452
hostname ?: string ;
0 commit comments