New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@helios-lang/type-utils

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helios-lang/type-utils - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

2

package.json
{
"name": "@helios-lang/type-utils",
"version": "0.1.13",
"version": "0.1.14",
"description": "Global utility types",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -21,4 +21,8 @@ declare global {

type Assert<O = unknown> = (
input: unknown,
msg?: string | undefined
) => asserts input is O
type EnumFromAsserts<A extends Record<string, Assert>, K> = K extends string
? { [K_ in K]: A[K] extends Assert<any, infer O> ? O : never }
? { [K_ in K]: A[K] extends Assert<infer O> ? O : never }
: never

@@ -25,0 +29,0 @@ export function expectEnum<A extends Record<string, Assert>>(

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc