Skip to content

Commit 051f846

Browse files
chore: type adjustments
1 parent b34a9fd commit 051f846

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/lib/server/github-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ export class GitHubCache {
855855
* @returns a map of paths to descriptions.
856856
*/
857857
async getDescriptions(owner: string, repo: string) {
858-
return await this.#processCached<{ [key: string]: string }>()(
858+
return await this.#processCached<Record<string, string>>()(
859859
this.#getRepoKey(owner, repo, "descriptions"),
860860
() =>
861861
this.#request(

src/routes/package/SidePanel.svelte

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
>[];
2929
}
3030
>[];
31-
otherReleases?: {
32-
[key: string]: Promise<
31+
otherReleases?: Record<
32+
string,
33+
Promise<
3334
| {
3435
releasesRepo: Prettify<
3536
Pick<CategorizedPackage, "category"> &
@@ -41,8 +42,8 @@
4142
releases: CleanRelease[] | undefined;
4243
}
4344
| undefined
44-
>;
45-
};
45+
>
46+
>;
4647
settings?: PackageSettings;
4748
headless?: boolean;
4849
class?: ClassValue;

0 commit comments

Comments
 (0)