# @types/squirejs

> TypeScript definitions for squirejs

Latest version **0.2.31** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/squirejs
pnpm add @types/squirejs
yarn add @types/squirejs
bun add @types/squirejs
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.31 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/squirejs
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/squirejs
- npm.io page: https://npm.io/package/@types/squirejs

## Recent versions

- 0.2.31 (latest) — 2023-11-07
- 0.2.28 (ts2.9) — 2016-09-19
- 0.2.30 — 2023-10-18
- 0.2.29 — 2023-09-25
- 0.2.27 — 2016-07-14
- 0.2.26-alpha — 2016-07-08
- 0.2.25-alpha — 2016-07-04
- 0.2.24-alpha — 2016-07-02
- 0.2.23-alpha — 2016-07-02
- 0.2.22-alpha — 2016-07-01
- 0.2.21-alpha — 2016-05-25
- 0.2.20-alpha — 2016-05-20
- 0.2.15-alpha — 2016-05-19
- 0.2.14-alpha — 2016-05-17

## README

# Installation
> `npm install --save @types/squirejs`

# Summary
This package contains type definitions for squirejs (https://github.com/iammerrick/Squire.js).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/squirejs.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/squirejs/index.d.ts)
````ts
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;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Bradley Ayers](https://github.com/bradleyayers).

---
_Source: https://npm.io/package/@types/squirejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
