JSPM

Found 48 results for type-guard

typescanner

A simple library for implementing type guard in TypeScript.

  • v0.5.3
  • 53.52
  • Published

@miyauci/isx

Collection of validation functions for JavaScript data

  • v1.5.0
  • 52.76
  • Published

ts-data-forge

[![npm version](https://img.shields.io/npm/v/ts-data-forge.svg)](https://www.npmjs.com/package/ts-data-forge) [![npm downloads](https://img.shields.io/npm/dm/ts-data-forge.svg)](https://www.npmjs.com/package/ts-data-forge) [![License](https://img.shields.

  • v3.2.0
  • 52.14
  • Published

to-typed

Type-guards, casts and converts unknowns into typed values

  • v0.5.2
  • 44.94
  • Published

ts-predicate

TypeScript predicates and assertions library

  • v1.1.4
  • 44.71
  • Published

guardz

A simple and lightweight TypeScript type guard library for runtime type validation.

  • v1.12.2
  • 44.20
  • Published

payload-is

A comprehensive TypeScript/JavaScript type checking library providing functions to check data types, collections, primitives, and built-in objects

  • v0.4.0
  • 37.28
  • Published

primitive-predicates

A simple TypeScript library providing type guards for the primitive types in JavaScript.

  • v2.1.4
  • 35.59
  • Published

guardz-generator-mcp

MCP (Model Context Protocol) Server for TypeScript Type Guard Generation - Generate runtime validation functions from TypeScript types

  • v1.11.8
  • 34.52
  • Published

@imhonglu/type-guard

TypeScript type guard utilities providing runtime type checking and validation with zero dependencies

  • v1.0.2
  • 30.95
  • Published

guardz-axios

Type-safe HTTP client built on top of Axios with runtime validation using guardz. Part of the guardz ecosystem for comprehensive TypeScript type safety.

  • v1.11.3
  • 27.86
  • Published

is-non-nullable

Just function to predicate non nullable with type guard.

  • v1.0.2
  • 27.24
  • Published

guardz-event

Type-safe event handling with runtime validation using guardz for unsafe data from 3rd parties

  • v1.11.3
  • 26.96
  • Published

is-some-enum

Generic type guard to check if a given value is a member of enum

  • v1.0.1
  • 24.11
  • Published

ts-tagged-union

A modern TypeScript library designed to reduce boilerplate for tagged unions, also known as discriminated unions. This library is also an implementation of algebraic data types

  • v1.2.1
  • 21.85
  • Published

hi-guardian

Runtime type guard generator for TypeScript. Create validators for objects, arrays, tuples and unions with automatic type inference. 3x faster than io-ts with zero dependencies.

    • v1.0.4
    • 21.09
    • Published

    typeanalyser

    Provides type detection and analysis for ANY Javascript object (including custom types) in any environment, even where native operators falter.

    • v2.0.6
    • 19.25
    • Published

    result-guard

    Type-safe error handling with discriminated unions and type guards for TypeScript

      • v1.2.3
      • 19.10
      • Published

      safetype

      Typescript library for typesafe creation of validation functions and type guards.

      • v0.0.7
      • 17.98
      • Published

      @bitty/nullish

      Nullish helper functions and types for TypeScript.

      • v0.3.0
      • 17.16
      • Published

      @bitty/falsy

      Falsy helper functions and types for TypeScript.

      • v0.3.0
      • 15.70
      • Published

      @typeguards/core

      Runtime type checking library for TS & JS

      • v1.1.0
      • 13.43
      • Published

      type-guard-pro

      Zero-dependency TypeScript runtime type validation with full type inference

      • v1.0.1
      • 12.64
      • Published

      inferred

      Typescript library to declare type-safe models by inferring model types from their validators.

      • v0.0.10
      • 12.55
      • Published

      valia

      A runtime data validator in TypeScript with advanced type inference, built-in validation functions, and seamless integration for server and client environments.

      • v3.1.1
      • 12.25
      • Published

      @bitty/predicate

      Predicate helper functions and types for TypeScript.

      • v0.3.0
      • 12.01
      • Published

      @1k/is

      The definitive JavaScript type testing functions

        • v0.1.8
        • 9.07
        • Published

        json-to-typed

        Build to-typed objects from JSON files.

        • v0.2.0
        • 8.46
        • Published

        plainp

        Check if a value is a plain object, with TypeGuard.

        • v1.0.0
        • 7.54
        • Published

        tsertion

        Koa middleware for handling errors.

        • v1.0.0
        • 6.32
        • Published

        is-only

        Lightweight TypeScript validation library with fluent API

        • v1.0.0
        • 4.68
        • Published

        @younho9/not

        Type guard based on exclude

        • v0.1.0
        • 3.04
        • Published

        @younho9/guards

        A set of type guards for TypeScript

        • v0.7.17
        • 2.67
        • Published

        is-interface

        Type Guard for interface

        • v0.1.0
        • 0.00
        • Published

        defined-type-guard

        A TypeScript Type-Guard for Filtering out undefined Values

        • v1.0.1
        • 0.00
        • Published