Skip to content

Commit 4a78253

Browse files
authored
fix(autocompletion): treat known localities and string as distinguishable types (#422)
1 parent b478de6 commit 4a78253

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
export type Region = 'fr-par' | 'nl-ams' | 'pl-waw' | string
1+
/* eslint-disable @typescript-eslint/ban-types */
2+
export type Region = 'fr-par' | 'nl-ams' | 'pl-waw' | (string & {})
23

34
export type Zone =
45
| 'fr-par-1'
@@ -8,4 +9,5 @@ export type Zone =
89
| 'nl-ams-2'
910
| 'pl-waw-1'
1011
| 'pl-waw-2'
11-
| string
12+
| (string & {})
13+
/* eslint-enable @typescript-eslint/ban-types */

0 commit comments

Comments
 (0)