Skip to content

Commit d5b106b

Browse files
author
Mathias Lorenzen
committed
new stuff.
1 parent cf47cc2 commit d5b106b

17 files changed

+519
-510
lines changed

dist/spec/index.test.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export declare class Example {
2-
a: string;
3-
c(arg1: string, arg2: string): string;
4-
readonly d: number;
5-
v: any;
6-
}
1+
export declare class Example {
2+
a: string;
3+
c(arg1: string, arg2: string): string;
4+
readonly d: number;
5+
v: any;
6+
}

dist/spec/index.test.js

Lines changed: 73 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/Arguments.d.ts

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
export declare class Arg {
2-
private description;
3-
private matchingFunction;
4-
private constructor();
5-
matches(arg: any): boolean;
6-
toString(): string;
7-
inspect(): string;
8-
static any(): any;
9-
static any<T extends 'string' | 'number' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function' | 'array'>(type: T): any;
10-
static is<T>(value: T): any;
11-
static is<T>(predicate: (input: T) => boolean): any;
12-
private static toStringify;
13-
}
1+
export declare class Arg {
2+
private description;
3+
private matchingFunction;
4+
private constructor();
5+
matches(arg: any): boolean;
6+
toString(): string;
7+
inspect(): string;
8+
static any(): any;
9+
static any<T extends 'string'>(type: T): Arg & string;
10+
static any<T extends 'number'>(type: T): Arg & number;
11+
static any<T extends 'boolean'>(type: T): Arg & boolean;
12+
static any<T extends 'array'>(type: T): Arg & any[];
13+
static any<T extends 'function'>(type: T): Arg & Function;
14+
static any<T extends 'string' | 'number' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function' | 'array'>(type: T): any;
15+
static is<T>(predicate: (input: T) => boolean): Arg & T;
16+
private static toStringify;
17+
}

dist/src/Arguments.js

Lines changed: 41 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/Arguments.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/Context.d.ts

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
export declare abstract class ProxyPropertyContextBase {
2-
name: string;
3-
type: 'function' | 'object';
4-
access: 'write' | 'read';
5-
constructor();
6-
}
7-
export declare class ProxyPropertyContext extends ProxyPropertyContextBase {
8-
type: 'object';
9-
returnValues: any[];
10-
constructor();
11-
promoteToMethod(): ProxyMethodPropertyContext;
12-
}
13-
export declare class ProxyMethodPropertyContext extends ProxyPropertyContextBase {
14-
method: ProxyMethodContext;
15-
type: 'function';
16-
constructor();
17-
}
18-
export declare class ProxyMethodContext {
19-
arguments: any[];
20-
returnValues: any[];
21-
constructor();
22-
}
23-
export declare class ProxyCallRecords {
24-
expected: ProxyExpectation;
25-
actual: ProxyCallRecord[];
26-
constructor();
27-
}
28-
export declare class ProxyExpectation {
29-
callCount: number;
30-
negated: boolean;
31-
constructor();
32-
}
33-
export declare class ProxyObjectContext {
34-
property: ProxyPropertyContext | ProxyMethodPropertyContext;
35-
calls: ProxyCallRecords;
36-
constructor();
37-
setExpectations(count: number, negated: boolean): void;
38-
findActualPropertyCall(propertyName: string, access: 'read' | 'write'): ProxyCallRecord;
39-
findActualMethodCall(propertyName: string, args: any[]): ProxyCallRecord;
40-
addActualPropertyCall(): void;
41-
private findCall;
42-
}
43-
export declare class ProxyCallRecord {
44-
callCount: number;
45-
property: ProxyPropertyContext | ProxyMethodPropertyContext;
46-
constructor(property?: ProxyPropertyContext | ProxyMethodPropertyContext);
47-
}
1+
export declare abstract class ProxyPropertyContextBase {
2+
name: string;
3+
type: 'function' | 'object';
4+
access: 'write' | 'read';
5+
constructor();
6+
}
7+
export declare class ProxyPropertyContext extends ProxyPropertyContextBase {
8+
type: 'object';
9+
returnValues: any[];
10+
constructor();
11+
promoteToMethod(): ProxyMethodPropertyContext;
12+
}
13+
export declare class ProxyMethodPropertyContext extends ProxyPropertyContextBase {
14+
method: ProxyMethodContext;
15+
type: 'function';
16+
constructor();
17+
}
18+
export declare class ProxyMethodContext {
19+
arguments: any[];
20+
returnValues: any[];
21+
constructor();
22+
}
23+
export declare class ProxyCallRecords {
24+
expected: ProxyExpectation;
25+
actual: ProxyCallRecord[];
26+
constructor();
27+
}
28+
export declare class ProxyExpectation {
29+
callCount: number;
30+
negated: boolean;
31+
constructor();
32+
}
33+
export declare class ProxyObjectContext {
34+
property: ProxyPropertyContext | ProxyMethodPropertyContext;
35+
calls: ProxyCallRecords;
36+
constructor();
37+
setExpectations(count: number, negated: boolean): void;
38+
findActualPropertyCall(propertyName: string, access: 'read' | 'write'): ProxyCallRecord;
39+
findActualMethodCall(propertyName: string, args: any[]): ProxyCallRecord;
40+
addActualPropertyCall(): void;
41+
private findCall;
42+
}
43+
export declare class ProxyCallRecord {
44+
callCount: number;
45+
property: ProxyPropertyContext | ProxyMethodPropertyContext;
46+
constructor(property?: ProxyPropertyContext | ProxyMethodPropertyContext);
47+
}

0 commit comments

Comments
 (0)