# @types/cwise

> TypeScript definitions for cwise

Latest version **1.0.7** (published 2026-06-10) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: active.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2026-06-10 |
| First published | 2017-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [@types/ndarray](https://npm.io/package/@types/ndarray.md) *
- [@types/cwise-compiler](https://npm.io/package/@types/cwise-compiler.md) *

## Recent versions

- 1.0.7 (latest) — 2026-06-10
- 1.0.6 (ts4.5) — 2023-11-07
- 1.0.4 (ts3.6) — 2021-07-08
- 1.0.3 (ts3.5) — 2021-05-08
- 1.0.2 (ts3.0) — 2020-05-15
- 1.0.1 (ts2.3) — 2017-07-26
- 1.0.0 (ts2.0) — 2017-05-03
- 1.0.5 — 2023-10-18

## README

# Installation
> `npm install --save @types/cwise`

# Summary
This package contains type definitions for cwise (https://github.com/scijs/cwise#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cwise.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cwise/index.d.ts)
````ts
import { ArgType } from "cwise-compiler";
import { NdArray } from "ndarray";

declare function cwise(a: string | cwise.UserArgs): cwise.Return;

declare namespace cwise {
    type Arg = NdArray | ((row: number, col: number) => number) | number[] | any;
    type Return = (a: NdArray, ...b: Arg[]) => void;
    interface UserArgs {
        args: ArgType[];
        pre?(a: number, ...args: any[]): void;
        body(a: number, ...args: any[]): void;
        post?(a: number, ...args: any[]): void;
        funcName?: string | undefined;
        blockSize?: number | undefined;
        printCode?: boolean | undefined;
    }
}
export = cwise;

````

### Additional Details
 * Last updated: Wed, 10 Jun 2026 20:17:46 GMT
 * Dependencies: [@types/cwise-compiler](https://npmjs.com/package/@types/cwise-compiler), [@types/ndarray](https://npmjs.com/package/@types/ndarray)

# Credits
These definitions were written by [taoqf](https://github.com/taoqf).

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