Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/tsafe/symToStr.ts

🔩 The missing TypeScript utils
Go to Latest
File
/** @see <https://docs.tsafe.dev/main/symtostr> */export function symToStr<T extends Record<string, unknown>>(wrap: T): keyof T { return Object.keys(wrap)[0];}