Socket
Socket
Sign inDemoInstall

extra-utils

Package Overview
Dependencies
2
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.5.1 to 5.5.2

4

lib/enum/in-enum.d.ts

@@ -1,2 +0,2 @@

export declare function inEnum<T extends Record<string, string | number>>(val: string | number, _enum: T): val is T[keyof T];
export declare function notInEnum(val: string | number, _enum: Record<string, string | number>): boolean;
export declare function inEnum<T extends Record<string, string | number>>(val: unknown, _enum: T): val is T[keyof T];
export declare function notInEnum(val: unknown, _enum: Record<string, string | number>): boolean;
{
"name": "extra-utils",
"version": "5.5.1",
"version": "5.5.2",
"description": "Utilities for JavaScript and Typescript",

@@ -5,0 +5,0 @@ "files": [

@@ -195,7 +195,7 @@ # extra-utils

function inEnum<T extends Record<string, string | number>>(
val: string | number
val: unknown
, _enum: T
): val is T[keyof T]
function notInEnum(
val: string | number
val: unknown
, _enum: Record<string, string | number>

@@ -202,0 +202,0 @@ ): boolean

import { enumValues } from './enum-values.js'
export function inEnum<T extends Record<string, string | number>>(
val: string | number
val: unknown
, _enum: T

@@ -12,3 +12,3 @@ ): val is T[keyof T] {

export function notInEnum(
val: string | number
val: unknown
, _enum: Record<string, string | number>

@@ -15,0 +15,0 @@ ): boolean {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc