{"version":3,"file":"misc.cjs","names":[],"sources":["../../src/utils/misc.ts"],"sourcesContent":["/**\n * Immediately invokes the provided function and returns its result.\n */\nexport const iife = <T>(fn: () => T): T => fn();\n\n/**\n * Type utility that recursively resolves object shape, removing type aliases,\n * intersections, and unions for easier type introspection and error output.\n *\n * Usage:\n *   type Input = { a: string } & { b: number };\n *   type Output = Prettify<Input>; // { a: string; b: number }\n */\nexport type Prettify<T> = T extends object\n  ? { [K in keyof T]: Prettify<T[K]> }\n  : T;\n\n/**\n * Distributes over a string union and applies Lowercase only to\n * string-literal members, filtering out wide `string` / `string & {}`.\n */\nexport type LowercaseLiteral<T> = T extends string\n  ? string extends T\n    ? never\n    : Lowercase<T>\n  : never;\n"],"mappings":";;;;AAGA,MAAa,QAAW,OAAmB,GAAG"}