@byloth/core
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -274,3 +274,3 @@ var h = Object.defineProperty; | ||
} | ||
const A = "1.1.4"; | ||
const A = "1.1.5"; | ||
export { | ||
@@ -277,0 +277,0 @@ f as DateUnit, |
{ | ||
"name": "@byloth/core", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "An unopinionated collection of useful functions and classes that I use widely in all my projects. 🔧", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
export const VERSION = "1.1.4"; | ||
export const VERSION = "1.1.5"; | ||
@@ -3,0 +3,0 @@ export { DeferredPromise, Exception, JsonStorage, Subscribers } from "./models/index.js"; |
@@ -17,4 +17,4 @@ import type { PromiseResolver, PromiseRejecter, FulfilledHandler, RejectedHandler } from "../types.js"; | ||
{ | ||
_resolve = resolve; | ||
_reject = reject; | ||
_resolve = resolve as PromiseResolver<T>; | ||
_reject = reject as PromiseRejecter<E>; | ||
}); | ||
@@ -21,0 +21,0 @@ |
@@ -7,4 +7,4 @@ export type Constructor<T extends object, P extends Array<unknown> = []> = new (...args: P) => T; | ||
export type PromiseResolver<T = void> = (result: MaybePromise<T>) => void; | ||
export type PromiseRejecter<E = unknown> = (reason: MaybePromise<E>) => void; | ||
export type PromiseResolver<T = void> = (result?: MaybePromise<T>) => void; | ||
export type PromiseRejecter<E = unknown> = (reason?: MaybePromise<E>) => void; | ||
export type PromiseExecutor<T = void, E = unknown> = (resolve: PromiseResolver<T>, reject: PromiseRejecter<E>) => void; |
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
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
92248