@types/cwise
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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

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

Credits

These definitions were written by taoqf.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cwise

Weekly Downloads

101

Version

1.0.6

License

MIT

Unpacked Size

3.96 kB

Total Files

5

Last publish

Collaborators

  • types