Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 439 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 439 Bytes

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.