Skip to content

Commit

Permalink
fix for bug where arg.is was called twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dummy committed Mar 3, 2019
1 parent d9613cf commit 39bfc7d
Show file tree
Hide file tree
Showing 16 changed files with 130 additions and 24 deletions.
1 change: 1 addition & 0 deletions dist/spec/issues/11.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
64 changes: 64 additions & 0 deletions dist/spec/issues/11.test.js

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

1 change: 1 addition & 0 deletions 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/8.test.js

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.

5 changes: 3 additions & 2 deletions dist/src/states/ContextState.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Context } from "src/Context";
import { Context } from "../Context";
import { FunctionState } from "./FunctionState";
export declare type PropertyKey = string | number | symbol;
export interface ContextState {
onSwitchedTo?(context: Context): void;
apply(context: Context, args: any[]): any;
apply(context: Context, args: any[], matchingFunctionStates?: FunctionState[]): any;
set(context: Context, property: PropertyKey, value: any): void;
get(context: Context, property: PropertyKey): any;
}
2 changes: 1 addition & 1 deletion dist/src/states/ContextState.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/states/FunctionState.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export declare class FunctionState implements ContextState {
readonly callCount: number;
readonly property: string | number | symbol;
constructor(_getPropertyState: GetPropertyState, ...args: any[]);
apply(context: Context, args: any[]): any;
apply(context: Context, args: any[], matchingFunctionStates: FunctionState[]): any;
set(context: Context, property: PropertyKey, value: any): void;
get(context: Context, property: PropertyKey): any;
}
10 changes: 6 additions & 4 deletions dist/src/states/FunctionState.js

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

Loading

0 comments on commit 39bfc7d

Please sign in to comment.