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

@nobrayner/orf

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nobrayner/orf - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

14

lib/orf.d.ts

@@ -1076,6 +1076,6 @@ interface IResult<T, E> {

* // result === Option.Some([
* Result.Ok(1),
* Result.Error("error1"),
* Result.Error("error2"),
* ])
* // Result.Ok(1),
* // Result.Error("error1"),
* // Result.Error("error2"),
* // ])
*```

@@ -1457,3 +1457,3 @@ */

*/
type InferInnerType<T> = T extends Future<infer U> ? U : T extends FallibleFuture<infer U, infer F> ? Result<U, F> : T extends UnwrappedFuture<infer U> ? U : T extends Option<infer U> ? U : never;
type InferInnerType<T> = T extends Future<infer U> ? U : T extends FallibleFuture<infer U, infer F> ? Result<U, F> : T extends UnwrappedFuture<infer U> ? U : T extends Option<infer U> ? U : T extends JsonOption<infer U> ? U : never;
/**

@@ -1464,3 +1464,3 @@ * Infers the `Ok` type of a "fallible"

*/
type InferOkType<T> = T extends FallibleFuture<infer U, infer _> ? U : T extends Result<infer U, infer _> ? U : never;
type InferOkType<T> = T extends FallibleFuture<infer U, infer _> ? U : T extends Result<infer U, infer _> ? U : T extends JsonResult<infer U, infer _> ? U : never;
/**

@@ -1471,4 +1471,4 @@ * Infers the `Error` type of a "fallible"

*/
type InferErrorType<T> = T extends FallibleFuture<infer _, infer F> ? F : T extends Result<infer _, infer F> ? F : never;
type InferErrorType<T> = T extends FallibleFuture<infer _, infer F> ? F : T extends Result<infer _, infer F> ? F : T extends JsonResult<infer _, infer F> ? F : never;
}
export { FallibleFuture, Future, JsonOption, JsonResult, Option, Result, orf };
{
"name": "@nobrayner/orf",
"version": "0.0.7",
"version": "0.0.8",
"description": "Option. Result. Future",

@@ -5,0 +5,0 @@ "sideEffect": false,

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