Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
@nyaomaru.eurosky.socialNov 24, 2026, 5:26 PM

You wrote it to localStorage, so it must still match your TypeScript type, right? 👀

Not necessarily.

Old versions, migrations, extensions, or manual edits can leave stale data behind.

Even your own frontend has runtime boundaries. 😸

#TypeScript #isKit #OpenSource #WebDev #EuropeanDevs

Dark-theme code editor screenshot. TypeScript code: import { isString, typedStruct } from 'is-kit'; type Preferences = { theme: string; locale: string }; const isPreferences = typedStruct<Preferences>()({ theme: isString, locale: isString }); const raw = localStorage.getItem('preferences'); const value = raw ? JSON.parse(raw) : null; inside if (isPreferences(value)) it reads const theme = value.theme and const locale = value.locale.
@nyaomaru-dev.bsky.socialNov 24, 2026, 5:26 PM

You wrote it to localStorage, so it must still match your TypeScript type, right? 👀

Not necessarily.

Old versions, migrations, extensions, or manual edits can leave stale data behind.

Even your own frontend has runtime boundaries. 😸

#TypeScript #isKit #OpenSource

Dark-theme code editor screenshot. TypeScript code: import { isString, typedStruct } from 'is-kit'; type Preferences = { theme: string; locale: string }; const isPreferences = typedStruct<Preferences>()({ theme: isString, locale: isString }); const raw = localStorage.getItem('preferences'); const value = raw ? JSON.parse(raw) : null; inside if (isPreferences(value)) it reads const theme = value.theme and const locale = value.locale.