@robert.tools/typings
v1.0.4
Published
A global set of common used types.
Maintainers
Readme
🗂️ @robert.tools/typings
A global set of common used types.
📜 Usage
🟢 Installation
npm install @robert.tools/typings📝 Sample usage
import type { $string } from '@robert.tools/typings';
const myString: $string = 'hello';
🗃️ commands
some specific commands:
- StringLike:
StringLike<${number}>- a branded string type to avoid collisions with built-in string methods - KEY_VALUE:
{ key: string; value: string; }- a type representing a key-value pair - $string:
string | null | undefined- a type representing a string that can also be null or undefined - URI:
StringLike<${FQDN | DOMAIN}>- a type representing a URI that can be a fully qualified domain name or a domain
more typings are available in the package under src/index.d.ts
⚖️ Notes
This software is hand-crafted, test-driven and assisted by AI tools. I know each line of my code. ✌️
| Tool | Comment | | ------------- | ------------- | | | Test-driven development with Jest | | | Part of the robert.tools ecosystem | | | Code completion | | | chatGPT research |
