npm.io
1.10.0 • Published 3 years ago

@stein197/ts-util

Licence
MIT
Version
1.10.0
Deps
0
Size
195 kB
Vulns
0
Weekly
0

TypeScript utility types

This package contains most frequently used types that most projects need.

Installation

npm install @stein197/ts-util

Interfaces

  • Cloneable<T>
  • Comparable<T>
  • Equalable<T>

Types

  • Nullable<T>
  • ObjectMap<T>
  • Json
  • JsonArray
  • JsonObject
  • Large MIME module that contains all available MIME-types, described here
  • Large css module that contains types related to CSS properties and their types.
  • Large HTMLAttributes module that contains HTML-related typings
  • Tuple module

NOTE: For more detailed documentation, please, refer to the TSDoc comments in the source code.

NPM scripts

  • make:index generates at the root index.ts
  • make:mime generates MIME.ts file
  • build runs all scripts

Keywords