/text-alias

:shipit: Strings should just be called texts

Primary LanguageTypeScriptDo What The F*ck You Want To Public LicenseWTFPL

text-alias

Typescript library for a text type (string alias).

Installation

$ npm install text-alias

Usage

import { text } from 'text-alias'

const foo: text = "bar"
const baz: text[] = ["qux", "quux"]

When should I use this?

pls don't

License & Acknowledgements

Licensed under WTFPL. Inspired by Dan Abramov's tweet.