@fluffy-spoon/substitute
Advanced tools
Comparing version 1.85.0 to 1.86.0
@@ -1,4 +0,4 @@ | ||
import { Substitute } from './Substitute'; | ||
import { Substitute, SubstituteOf } from './Substitute'; | ||
export { Arg } from './Arguments'; | ||
export { Substitute }; | ||
export { Substitute, SubstituteOf }; | ||
export default Substitute; |
import { ObjectSubstitute, OmitProxyMethods, DisabledSubstituteObject } from "./Transformations"; | ||
export declare const HandlerKey: unique symbol; | ||
export declare const AreProxiesDisabledKey: unique symbol; | ||
export declare type SubstituteOf<T extends Object> = ObjectSubstitute<OmitProxyMethods<T>, T> & T; | ||
export declare class Substitute { | ||
static for<T>(): ObjectSubstitute<OmitProxyMethods<T>, T> & T; | ||
static for<T>(): SubstituteOf<T>; | ||
static disableFor<T extends ObjectSubstitute<OmitProxyMethods<any>>>(substitute: T): DisabledSubstituteObject<T>; | ||
} |
{ | ||
"name": "@fluffy-spoon/substitute", | ||
"version": "1.85.0", | ||
"version": "1.86.0", | ||
"description": "An NSubstitute port to TypeScript called substitute.js.", | ||
@@ -15,5 +15,5 @@ "main": "dist/src/index.js", | ||
"@types/node": "latest", | ||
"ava": "^1.4.0", | ||
"ava": "^1.4.1", | ||
"ts-node": "^7.0.1", | ||
"typescript": "^3.3.4000" | ||
"typescript": "^3.4.1" | ||
}, | ||
@@ -20,0 +20,0 @@ "ava": { |
@@ -1,6 +0,6 @@ | ||
import { Substitute } from './Substitute'; | ||
import { Substitute, SubstituteOf } from './Substitute'; | ||
export { Arg } from './Arguments'; | ||
export { Substitute }; | ||
export { Substitute, SubstituteOf }; | ||
export default Substitute; |
@@ -7,4 +7,6 @@ import { Context } from "./Context"; | ||
export type SubstituteOf<T extends Object> = ObjectSubstitute<OmitProxyMethods<T>, T> & T; | ||
export class Substitute { | ||
static for<T>(): ObjectSubstitute<OmitProxyMethods<T>, T> & T { | ||
static for<T>(): SubstituteOf<T> { | ||
const objectContext = new Context(); | ||
@@ -11,0 +13,0 @@ return objectContext.rootProxy; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
179112
2382