in lib.dom.ts
there is a type definition:
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
I want to create a type definition with zod, where the type references the RTCSdpType
definition. Is this possible to do?
const MyType = z.object({
t: RTCSdpType, // <--- ERROR: 'RTCSdpType' only refers to a type, but is being used as a value here.
})