mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
1// This isn't a real property, but it prevents T being compatible with Shadow<T>. 2declare const shadowTag: unique symbol 3export type Shadow<T> = T & {[shadowTag]: true} 4 5export function castAsShadow<T>(value: T): Shadow<T> { 6 return value as any as Shadow<T> 7}