@swan-io/boxed
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -1,3 +0,3 @@ | ||
export declare function entries<T>(value: T): { [K in keyof T]: K extends string ? [K, T[K]] : never; }[keyof T][]; | ||
export declare function keys<T>(value: T): { [K in keyof T]: K extends string ? K : never; }[keyof T][]; | ||
export declare function entries<T>(value: T): NonNullable<{ [K in keyof T]: K extends string ? [K, T[K]] : never; }[keyof T]>[]; | ||
export declare function keys<T>(value: T): NonNullable<{ [K in keyof T]: K extends string ? K : never; }[keyof T]>[]; | ||
export declare function values<T>(value: T): { [K in keyof T]: K extends string ? T[K] : never; }[keyof T][]; |
@@ -33,11 +33,5 @@ import { Option } from "./Option"; | ||
Error: <Ok_1, Error_2>(error: Error_2) => Result<Ok_1, Error_2>; | ||
fromExecution<ReturnValue>(func: () => ReturnValue): (ResultClass<unknown, unknown> & { | ||
tag: "Error"; | ||
value: unknown; | ||
}) | (ResultClass<unknown, unknown> & { | ||
tag: "Ok"; | ||
value: unknown; | ||
}); | ||
fromPromise<ReturnValue_1>(promise: Promise<ReturnValue_1>): Promise<Result<ReturnValue_1, unknown>>; | ||
equals: <Value, Error_3>(a: Result<Value, Error_3>, b: Result<Value, Error_3>, equals: (a: Value, b: Value) => boolean) => boolean; | ||
fromExecution<ReturnValue, Error_3 = unknown>(func: () => ReturnValue): Result<ReturnValue, Error_3>; | ||
fromPromise<ReturnValue_1, Error_4 = unknown>(promise: Promise<ReturnValue_1>): Promise<Result<ReturnValue_1, Error_4>>; | ||
equals: <Value, Error_5>(a: Result<Value, Error_5>, b: Result<Value, Error_5>, equals: (a: Value, b: Value) => boolean) => boolean; | ||
pattern: { | ||
@@ -44,0 +38,0 @@ Ok: <T>(x: T) => { |
{ | ||
"name": "@swan-io/boxed", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Utility types for functional TypeScript", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103206
309