1.0.6 • Published 6 months ago
@types/cwise v1.0.6
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
// Type definitions for cwise 1.0
// Project: https://github.com/scijs/cwise#readme
// Definitions by: taoqf <https://github.com/taoqf>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
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: Thu, 08 Jul 2021 09:08:26 GMT
- Dependencies: @types/cwise-compiler, @types/ndarray
- Global values: none
Credits
These definitions were written by taoqf.