mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-04 07:52:51 +00:00
28 lines
884 B
TypeScript
28 lines
884 B
TypeScript
// Type definitions for Squire 0.2.1
|
|
// Project: https://github.com/iammerrick/Squire.js
|
|
// Definitions by: Bradley Ayers <https://github.com/bradleyayers>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
declare class Squire {
|
|
constructor();
|
|
constructor(context: string);
|
|
mock(name: string, mock: any): Squire;
|
|
mock(mocks: { [name: string]: any }): Squire;
|
|
require(dependencies: string[], callback: Function, errback?: Function): Squire;
|
|
store(name: string | string[]): Squire;
|
|
clean(): Squire;
|
|
clean(name: string | string[]): Squire;
|
|
remove(): String;
|
|
run(dependencies: string[], test: Function): (done: Function) => void;
|
|
}
|
|
|
|
declare namespace Squire {
|
|
namespace Helpers {
|
|
export function returns<T>(what: T): () => T;
|
|
export function constructs<T>(what: T): () => (() => T);
|
|
}
|
|
}
|
|
|
|
export = Squire;
|