Something went wrong. Try again.
A Witchsky fork with a pinch of that one TV guy.. 📺 🎤 (and a bunch of extras) forked from jollywhoppers.com/witchsky.app tenna.party
social-app atproto
Something went wrong. Try again.
262 B · 7 lines
TypeScript
at main
12345678// This isn't a real property, but it prevents T being compatible with Shadow<T>.declare const shadowTag: unique symbolexport type Shadow<T> = T & {[shadowTag]: true}
export function castAsShadow<T>(value: T): Shadow<T> { return value as any as Shadow<T>}