Skip to content

Commit 58f90f7

Browse files
committed
refac(js): Do not use number type for object key
Keys are converted as string internally. microsoft/TypeScript#13715
1 parent 7967543 commit 58f90f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/lib/models.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface Bookmark {
1313
}
1414

1515
export interface BookmarkById {
16-
readonly [id: number]: Bookmark;
16+
readonly [id: string]: Bookmark;
1717
}
1818

1919
export interface SearchCondition {

frontend/state.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface State {
88
export interface BookmarkState {
99
readonly nowLoading: boolean;
1010
readonly byId: {
11-
readonly [id: number]: Bookmark;
11+
readonly [id: string]: Bookmark;
1212
};
1313
}
1414

0 commit comments

Comments
 (0)