Skip to content

Commit

Permalink
Added SubstituteOf as as return type from Substitute.for (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hanson authored and ffMathy committed Apr 2, 2019
1 parent 929718a commit 13be317
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 24 deletions.
2 changes: 1 addition & 1 deletion dist/spec/issues/11.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/spec/issues/15.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/spec/issues/18.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/spec/issues/23.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/spec/issues/25.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/spec/issues/8.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/Arguments.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/src/Substitute.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
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>;
}
Loading

0 comments on commit 13be317

Please sign in to comment.