Skip to content

BlackGlory/justypes

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

justypes

Dumb types for TypeScript in the real world.

justypes contains these types:

  • A new type is an interface.
  • A new type is a collection of types.
  • A new type is a mapping of type A to type B.

Install

npm install --save justypes
# or
yarn add justypes

Types

  • Arrayable
  • Awaitable
  • Cons
  • Constructor
  • Dictionary
  • FixedLengthArray
  • Falsy
  • Getter
  • JSONValue
  • JSONObject
  • JSONSerializable
  • NonEmptyArray
  • Nullish
  • TypedArray
  • TypedArrayConstructor
  • SignedTypedArray
  • SignedTypedArrayConsturctor
  • UnsignedTypedArray
  • UnsignedTypedArrayConstructor
  • TypedArrayOfConstructor
  • ConstructorOfTypedArray