Skip to content

Commit

Permalink
Convert multi-property type definitions to interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Moore committed Dec 30, 2016
1 parent 46a8fba commit fb669c0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function object<Key extends string>(props: Key[]): DoubledObjectWithKey<K
// When passed general object
export function object<T>(object: T): DoubledObject<T>;

export type Stubber = {
export interface Stubber {
thenReturn(...args: any[]): TestDouble;
thenDo(f: Function): TestDouble;
thenThrow(e: Error): TestDouble;
Expand All @@ -29,13 +29,13 @@ export function callback(...args: any[]): void;

export function when(...args: any[]): Stubber;

export type Matchers = {
export interface Matchers {
anything(): any;
isA(type: Function): any;
contains(a: string|any[]|{}): any;
argThat(matcher: Function): any;
not(v: any): any;
};
}

export const matchers: Matchers;

Expand All @@ -44,19 +44,19 @@ export function replace(path: {}, property: string, f?: any): any;

export function reset(): void;

export type VerificationConfig = {
export interface VerificationConfig {
ignoreExtraArgs?: boolean;
times?: number;
};
}

export function verify(a: any, check?: VerificationConfig): void;

type Call = {
interface Call {
context: {};
args: any[];
};
}

export type Explanation = {
export interface Explanation {
callCount: number;
calls: Call[];
description: string;
Expand Down

0 comments on commit fb669c0

Please sign in to comment.