From 4632c4325d35e95b983e7dd6236c7e0b372d6967 Mon Sep 17 00:00:00 2001 From: Stijn van der Kolk Date: Fri, 26 Jan 2024 15:06:01 +0100 Subject: [PATCH] fix: export as const --- src/interfaces/statsfm/album.ts | 4 ++-- src/interfaces/statsfm/artist.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interfaces/statsfm/album.ts b/src/interfaces/statsfm/album.ts index 287cc8b..c87501c 100644 --- a/src/interfaces/statsfm/album.ts +++ b/src/interfaces/statsfm/album.ts @@ -7,14 +7,14 @@ export const AlbumReleaseType = { ALBUM: 'ALBUM', COMPILATION: 'COMPILATION', EP: 'EP' -}; +} as const; export type AlbumReleaseType = (typeof AlbumReleaseType)[keyof typeof AlbumReleaseType]; export const AlbumReleaseImageSource = { SPOTIFY: 'SPOTIFY', APPLEMUSIC: 'APPLEMUSIC' -}; +} as const; export type AlbumReleaseImageSource = (typeof AlbumReleaseImageSource)[keyof typeof AlbumReleaseImageSource]; diff --git a/src/interfaces/statsfm/artist.ts b/src/interfaces/statsfm/artist.ts index aac2740..4f686b5 100644 --- a/src/interfaces/statsfm/artist.ts +++ b/src/interfaces/statsfm/artist.ts @@ -4,7 +4,7 @@ import { TopObject } from './top'; export const ArtistImageSource = { SPOTIFY: 'SPOTIFY', APPLEMUSIC: 'APPLEMUSIC' -}; +} as const; export type ArtistImageSource = (typeof ArtistImageSource)[keyof typeof ArtistImageSource];