@thaitype/utils
v0.3.1
Published
Opinionated TypeScript Utility Libraries [@thaitype](https://github.com/mildronize/thaitype)
Downloads
2
Readme
@thaitype/utils
Opinionated TypeScript Utility Libraries @thaitype
Installation
npm i @thaitype/utils
Philosophy
npm packages is a hugh community, somethime, we don't know the npm package for our solution. We don't want to duplicate implementation of utility, if you found the alternative npm packages, please feel free to open issues, or PR ;).
Related Utils Library
Examples
import { createSymbolRecord } from '@thaitype/utils';
export const Tokens = createSymbolRecord('HealthAlertOption', 'SlackOption');
// Equal to
export const Tokens = {
HealthAlertOption: Symbol.for('HealthAlertOption'),
SlackOption: Symbol.for('SlackOption'),
}