diff --git a/code/index.d.ts b/code/index.d.ts index db59f6bf93..37cbdb224f 100644 --- a/code/index.d.ts +++ b/code/index.d.ts @@ -4,19 +4,17 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** Generates an assertion object. */ -declare function expect(value: T | T[], prefix?: string): AssertionChain; +export function expect(value: T | T[], prefix?: string): AssertionChain; /** Makes the test fail with the given message. */ -declare function fail(message: string): void; +export function fail(message: string): void; /** Returns the total number of assertions created using the expect() method. */ -declare function count(): number; -/** Returns an array of the locations where incomplete assertions were declared or null if no incomplete assertions found. */ -declare function incomplete(): string[] | null; +export function count(): number; +/** Returns an array of the locations where incomplete assertions were exportd or null if no incomplete assertions found. */ +export function incomplete(): string[] | null; /** Returns the filename, line number, and column number of where the error was created. */ -declare function thrownAt(error?: Error): CodeError; +export function thrownAt(error?: Error): CodeError; /** Configure code. */ -declare const settings: Settings; - -export { expect, fail, count, incomplete, thrownAt, settings }; +export const settings: Settings; type AssertionChain = Assertion & Expectation;