1.0.6 • Published 2 years ago

@types/cwise v1.0.6

Weekly downloads
210
License
MIT
Repository
github
Last release
2 years ago

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

Credits

These definitions were written by taoqf.

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

8 years ago

1.0.0

8 years ago