@wry/context
Advanced tools
Comparing version 0.6.0 to 0.6.1
import { Slot } from "./slot"; | ||
export { Slot }; | ||
export declare const bind: <TArgs extends any[], TResult>(callback: (...args: TArgs) => TResult) => (...args: TArgs) => TResult, noContext: <TResult, TArgs extends any[], TThis = any>(callback: (this: TThis, ...args: TArgs) => TResult, args?: TArgs | undefined, thisArg?: TThis | undefined) => TResult; | ||
export declare const bind: <TArgs extends any[], TResult, TThis = any>(callback: (this: TThis, ...args: TArgs) => TResult) => (this: TThis, ...args: TArgs) => TResult, noContext: <TResult, TArgs extends any[], TThis = any>(callback: (this: TThis, ...args: TArgs) => TResult, args?: TArgs | undefined, thisArg?: TThis | undefined) => TResult; | ||
export { setTimeoutWithContext as setTimeout }; | ||
declare function setTimeoutWithContext(callback: () => any, delay: number): any; | ||
export declare function asyncFromGen<TArgs extends any[]>(genFn: (...args: TArgs) => any): (...args: TArgs) => Promise<any>; | ||
export declare function asyncFromGen<TArgs extends any[], TYield = any, TReturn = any, TNext = any>(genFn: (...args: TArgs) => Generator<TYield, TReturn, TNext>): (...args: TArgs) => Promise<any>; | ||
export declare function wrapYieldingFiberMethods<F extends Function>(Fiber: F): F; |
@@ -8,6 +8,6 @@ declare const makeSlotClass: () => { | ||
}; | ||
bind<TArgs_1 extends any[], TResult_2>(callback: (...args: TArgs_1) => TResult_2): (...args: TArgs_1) => TResult_2; | ||
noContext<TResult_3, TArgs_2 extends any[], TThis_1 = any>(callback: (this: TThis_1, ...args: TArgs_2) => TResult_3, args?: TArgs_2 | undefined, thisArg?: TThis_1 | undefined): TResult_3; | ||
bind<TArgs_1 extends any[], TResult_1, TThis_1 = any>(callback: (this: TThis_1, ...args: TArgs_1) => TResult_1): (this: TThis_1, ...args: TArgs_1) => TResult_1; | ||
noContext<TResult_2, TArgs_2 extends any[], TThis_2 = any>(callback: (this: TThis_2, ...args: TArgs_2) => TResult_2, args?: TArgs_2 | undefined, thisArg?: TThis_2 | undefined): TResult_2; | ||
}; | ||
export declare const Slot: ReturnType<typeof makeSlotClass>; | ||
export {}; |
{ | ||
"name": "@wry/context", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"author": "Ben Newman <ben@eloper.dev>", | ||
@@ -25,7 +25,7 @@ "description": "Manage contextual information needed by (a)synchronous tasks without explicitly passing objects around", | ||
"mocha": "../../scripts/test.sh lib/tests.js", | ||
"prepublish": "npm run build", | ||
"prepare": "npm run build", | ||
"test": "npm run build && npm run mocha" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.1.0" | ||
"tslib": "^2.3.0" | ||
}, | ||
@@ -35,3 +35,3 @@ "engines": { | ||
}, | ||
"gitHead": "41f90c1a6e1103645d608a298999092dde6d62ad" | ||
"gitHead": "91655122045a99ad445aa330e88905feb3775db6" | ||
} |
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
56512
Updatedtslib@^2.3.0