Socket
Socket
Sign inDemoInstall

opty

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opty - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

LICENSE

8

index.d.ts

@@ -21,3 +21,3 @@ declare module "opty" {

}
export declare class Some<T> implements Option<T> {
export class Some<T> implements Option<T> {
private value;

@@ -44,3 +44,3 @@ constructor(v: T);

}
export declare class None<T> implements Option<T> {
export class None<T> implements Option<T> {
constructor();

@@ -82,3 +82,3 @@ map<U>(fn: (a: T) => U): Option<U>;

}
export declare class Ok<T, E> implements Result<T, E> {
export class Ok<T, E> implements Result<T, E> {
private value;

@@ -101,3 +101,3 @@ constructor(v: T);

}
export declare class Err<T, E> implements Result<T, E> {
export class Err<T, E> implements Result<T, E> {
private error;

@@ -104,0 +104,0 @@ constructor(error: E);

{
"name": "opty",
"version": "0.1.0",
"version": "0.1.1",
"description": "Option and Result type ported from Rust",

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

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