strong-typeof
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

strong-typeof

A pure TypeScript/JavaScript library for strongly typing at runtime.

Usage

Install it from the npm repository:

npm install --save strong-typeof

Then require it in your project:

const { typeOf, StrongFunction } = require('strong-typeof')

Package also exports as ES Module with TS definitions for use with Deno and TypeScript.

Features

  • Type-checking functions with built-in extensions for common duck-types like async and iterable.
  • Extensible type-checking by registering custom types (disabled by default)
  • Factory functions for creating runtime strongly type-checked function parameters

API

See the API documentation for complete information.

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i strong-typeof

    Weekly Downloads

    3

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    33.6 kB

    Total Files

    22

    Last publish

    Collaborators

    • ahuggins_nhs