dsherret / dsherret/ts-morph

Is it possible to instantiate intrinsic types?

Open
#1,341 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

I would like to reference `string` type. How can I do that? The closest I found so far is `(project as any)._context.compilerFactory.getType((project as any).getProgram().compilerObject.getTypeChecker().getStringType())` which is of course terrible...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.