// Type definitions for Squire 0.2.1 // Project: https://github.com/iammerrick/Squire.js // Definitions by: Bradley Ayers // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module 'Squire' { 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; } module Squire { module Helpers { export function returns(what: T): () => T; export function constructs(what: T): () => (() => T); } } export = Squire; }