type-to-string

Get a string representation of a TypeScript type.

BSD-3-CLAUSE License

Downloads
33.5K
Stars
1

Type to String

Get a string representation of a TypeScript type.

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();

Donate

Any donations would be much appreciated. 😄

Installation

# Install with npm
npm install type-to-string

# Install with pnpm
pnpm add type-to-string

# Install with yarn
yarn add type-to-string
Package Rankings
Top 28.01% on Npmjs.org
Badges
Extracted from project README
npm version CI Coverage Status code style: prettier GitHub Discussions BSD 3 Clause license Commitizen friendly semantic-release
Related Projects