Skip to content

Commit 432deda

Browse files
committed
oops
1 parent 3bf48b7 commit 432deda

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

scripts/release/types.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ export type Version = {
1010
noCommit?: boolean;
1111
};
1212

13-
export type Versions = {
14-
[lang: string]: Version;
15-
};
13+
export type Versions = Record<string, Version>;
1614

17-
export type VersionsBeforeBump = {
18-
[lang: string]: Omit<Version, 'next' | 'releaseType'>;
19-
};
15+
export type VersionsBeforeBump = Record<
16+
string,
17+
Omit<Version, 'next' | 'releaseType'>
18+
>;
2019

2120
export type Scope = Language | 'clients' | 'specs';
2221

scripts/types.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ export type Spec = {
6262
*/
6363
type Server = {
6464
url: string;
65-
variables?: {
66-
[k: string]: {
65+
variables?: Record<
66+
string,
67+
{
6768
enum?: string[];
6869
default: string;
69-
};
70-
};
70+
}
71+
>;
7172
};
7273

7374
/**

0 commit comments

Comments
 (0)