Skip to content

Commit 0f16989

Browse files
author
Mathias Lorenzen
committed
dist stuff.
1 parent 8d852d4 commit 0f16989

21 files changed

+579
-0
lines changed

dist/spec/index.test.d.ts

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

dist/spec/index.test.js

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

dist/spec/index.test.js.map

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

dist/src/Arguments.js

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

0 commit comments

Comments
 (0)