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

@hazae41/result

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hazae41/result - npm Package Compare versions

Comparing version 1.1.12 to 1.1.13

11

dist/types/mods/result/err.d.ts

@@ -73,7 +73,14 @@ import { None, Some } from '@hazae41/option';

/**
* Compile-time safely get `this.inner`
* Compile-time safely get Ok's inner type
* @returns `this.inner`
* @throws if `this` is `Err`
*/
get(): T;
get(this: never): void;
/**
* Compile-time safely get Err's inner type
* @returns `this.inner`
* @throws if `this` is `Ok`
*/
getErr(): T;
/**
* Transform `Result<T, E>` into `Option<T>`

@@ -80,0 +87,0 @@ * @returns `Some(this.inner)` if `Ok`, `None` if `Err`

@@ -66,7 +66,14 @@ import { Some, None } from '@hazae41/option';

/**
* Compile-time safely get `this.inner`
* Compile-time safely get Ok's inner type
* @returns `this.inner`
* @throws if `this` is `Err`
*/
get(): T;
/**
* Compile-time safely get Err's inner type
* @returns `this.inner`
* @throws if `this` is `Ok`
*/
getErr(this: never): void;
/**
* Transform `Result<T, E>` into `Option<T>`

@@ -73,0 +80,0 @@ * @returns `Some(this.inner)` if `Ok`, `None` if `Err`

2

package.json
{
"type": "module",
"name": "@hazae41/result",
"version": "1.1.12",
"version": "1.1.13",
"description": "Rust-like Result for TypeScript",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/hazae41/result",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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