ts-pathof
ts-pathof copied to clipboard
typesafe pathof
When importing the module (in any file) `$ tsc` fails, running out of memory with errory: ``` FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory ``` Node...
When I try using `PathOf`, it gives me the error: ``` Generic type 'PathOf' requires 22 type argument(s). ``` Sample code: ```typescript const x = { a: 1 }; type...
Check: https://github.com/Microsoft/TypeScript/issues/14833 https://github.com/Microsoft/TypeScript/issues/12290