Skip to content

Utility types to enhance and simplify TypeScript development.

License

Notifications You must be signed in to change notification settings

typescript-package/type

Repository files navigation

typescript-package/type

Utility types to enhance and simplify TypeScript development.

npm version GitHub issues GitHub license


Table of contents

Installation

npm install @typescript-package/type

Api

import {
  // Any
  AnyBoolean,
  AnyNumber,
  AnyString,

  // Object.
  ArrayToObject,
  GenericObject,

  // Class.
  Constructor,
  PrototypeOf,

  // Instance.
  ExtractInstanceFromKey,
  InstanceIntersection,
  InstanceIntersectionFromKey,
  InstanceOfConstructor,
  InstanceTupleFromKey,
  InstanceTypes,
  IntersectionOfInstances,

  // Primitive.
  Primitive,
  PrimitiveNames,

  // Callback.
  CallbackPayload,
  ForEachCallback,
  ResultCallback,

  // String.
  StringOfLength,

  // Rest.
  Defined,
  ExpectType,
  MinMax,
  Never,
  NotUndefined,
  NumberBetween,
  Type,
  TypeNames,
  Undefined,
  UnionToIntersection,
  UnionToTuple
} from '@typescript-package/type';

GIT

Commit

Versioning

Semantic Versioning 2.0.0

Given a version number MAJOR.MINOR.PATCH, increment the:

  • MAJOR version when you make incompatible API changes,
  • MINOR version when you add functionality in a backwards-compatible manner, and
  • PATCH version when you make backwards-compatible bug fixes.

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

FAQ How should I deal with revisions in the 0.y.z initial development phase?

The simplest thing to do is start your initial development release at 0.1.0 and then increment the minor version for each subsequent release.

How do I know when to release 1.0.0?

If your software is being used in production, it should probably already be 1.0.0. If you have a stable API on which users have come to depend, you should be 1.0.0. If you’re worrying a lot about backwards compatibility, you should probably already be 1.0.0.

License

MIT © typescript-package (license)

About

Utility types to enhance and simplify TypeScript development.

Resources

License

Stars

Watchers

Forks

Packages

No packages published