basically i have a new typescript project, and i'd love to be able to start up a repl and instantly have access to project types defined in a file. specifically, things defined like:
export type Dict<T> = Record<string, T>;
export type StringDict = Dict<string>;
export type Collection<T> = T[] | Dict<T>;
i'd love to be able to say ts-node -r src/types/index.ts and have it create a repl where i can just use Dict. is this possible?
basically i have a new typescript project, and i'd love to be able to start up a repl and instantly have access to project types defined in a file. specifically, things defined like:
i'd love to be able to say
ts-node -r src/types/index.tsand have it create a repl where i can just useDict. is this possible?