package
Get a string representation of a TypeScript type.
npm install type-to-stringGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
32.7 kB
Includes dependencies.
This project is really just me playing with different ways to get string representions of TypeScript types.
For most users, you can probably just use TypeScript built in functions:
checker.typeToString(type);typeNode.getText();Any donations would be much appreciated. 😄
# Install with npm
npm install type-to-string
# Install with pnpm
pnpm add type-to-string
# Install with yarn
yarn add type-to-string