Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@helios-lang/codec-utils

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.1.17 to 0.1.18

2

package.json
{
"name": "@helios-lang/codec-utils",
"version": "0.1.17",
"version": "0.1.18",
"description": "Primitive manipulation functions commonly used in encoding and decoding algorithms",

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

/**
* @template T
* @typedef {null | T} Option
*/
/**
* @template T
* @param {Option<T>} opt

@@ -17,3 +13,11 @@ * @returns {opt is T}

export function isNone<T>(opt: Option<T>): opt is null;
export type Option<T> = null | T;
/**
* @template T
* @typedef {null | undefined | T} Option
*/
/**
* @type {null}
*/
export const None: null;
export type Option<T> = null | undefined | T;
//# sourceMappingURL=index.d.ts.map
/**
* @template T
* @typedef {null | T} Option
* @typedef {null | undefined | T} Option
*/
/**
* @type {null}
*/
export const None = null
/**
* @template T

@@ -12,3 +17,3 @@ * @param {Option<T>} opt

export function isSome(opt) {
return opt !== null
return opt !== null && opt !== undefined
}

@@ -22,3 +27,3 @@

export function isNone(opt) {
return opt === null
return opt === null || opt === undefined
}

Sorry, the diff of this file is not supported yet

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