Skip to content

Commit

Permalink
fix: Better type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
robertleeplummerjr committed Jan 13, 2021
1 parent 7e3fa3a commit 026763a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gpu.js",
"version": "2.11.0",
"version": "2.11.1",
"description": "GPU Accelerated JavaScript",
"engines": {
"node": ">=8.0.0"
Expand Down
8 changes: 4 additions & 4 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class GPU {
nativeFunctions: IGPUNativeFunction[];
setFunctions(flag: any): this;
setNativeFunctions(flag: IGPUNativeFunction[]): this;
addFunction(kernel: GPUFunction, settings?: IGPUFunctionSettings): this;
addFunction<ArgTypes extends ThreadKernelVariable[] = ThreadKernelVariable[], ConstantsType = {}>(kernel: GPUFunction<ArgTypes, ConstantsType>, settings?: IGPUFunctionSettings): this;
addNativeFunction(name: string, source: string, settings?: IGPUFunctionSettings): this;
combineKernels(...kernels: KernelFunction[]): IKernelRunShortcut;
combineKernels<KF extends KernelFunction>(...kernels: KF[]):
Expand Down Expand Up @@ -617,7 +617,7 @@ export class Input {

export type input = (value: number[], size: OutputDimensions) => Input;

export function alias(name: string, source: KernelFunction): KernelFunction;
export function alias<T>(name: string, source: T): T;

export class KernelValue {
constructor(value: KernelVariable, settings: IKernelValueSettings);
Expand Down Expand Up @@ -657,8 +657,8 @@ export interface IJSONSettings {
threadDim?: number[];
}

export type utils = {
getMinifySafeName(arrowReference: () => Function): string;
export declare const utils: {
getMinifySafeName: <T>(arrowReference: () => T) => string
}

export interface IReason {
Expand Down

0 comments on commit 026763a

Please sign in to comment.