Skip to content

Commit

Permalink
chore: ユニオン型のパイプ記号の位置を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyme committed Apr 26, 2024
1 parent a869939 commit e27d7b2
Showing 1 changed file with 37 additions and 36 deletions.
73 changes: 37 additions & 36 deletions packages/frontend/src/local-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,43 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/

type Keys =
'v' |
'lastVersion' |
'instance' |
'instanceCachedAt' |
'account' |
'accounts' |
'latestDonationInfoShownAt' |
'neverShowDonationInfo' |
'neverShowLocalOnlyInfo' |
'modifiedVersionMustProminentlyOfferInAgplV3Section13Read' |
'lastUsed' |
'lang' |
'drafts' |
'hashtags' |
'wallpaper' |
'theme' |
'colorScheme' |
'useSystemFont' |
'fontSize' |
'ui' |
'ui_temp' |
'locale' |
'localeVersion' |
'theme' |
'customCss' |
'message_drafts' |
'scratchpad' |
'debug' |
`miux:${string}` |
`ui:folder:${string}` |
`themes:${string}` |
`aiscript:${string}` |
'lastEmojisFetchedAt' | // DEPRECATED, stored in indexeddb (13.9.0~)
'emojis' | // DEPRECATED, stored in indexeddb (13.9.0~);
`channelLastReadedAt:${string}`
type Keys = (
| 'v'
| 'lastVersion'
| 'instance'
| 'instanceCachedAt'
| 'account'
| 'accounts'
| 'latestDonationInfoShownAt'
| 'neverShowDonationInfo'
| 'neverShowLocalOnlyInfo'
| 'modifiedVersionMustProminentlyOfferInAgplV3Section13Read'
| 'lastUsed'
| 'lang'
| 'drafts'
| 'hashtags'
| 'wallpaper'
| 'theme'
| 'colorScheme'
| 'useSystemFont'
| 'fontSize'
| 'ui'
| 'ui_temp'
| 'locale'
| 'localeVersion'
| 'theme'
| 'customCss'
| 'message_drafts'
| 'scratchpad'
| 'debug'
| `miux:${string}`
| `ui:folder:${string}`
| `themes:${string}`
| `aiscript:${string}`
| 'lastEmojisFetchedAt' // DEPRECATED, stored in indexeddb (13.9.0~)
| 'emojis' // DEPRECATED, stored in indexeddb (13.9.0~)
| `channelLastReadedAt:${string}`
);

export const miLocalStorage = {
getItem: (key: Keys): string | null => window.localStorage.getItem(key),
Expand Down

0 comments on commit e27d7b2

Please sign in to comment.