Skip to content

Commit 80ec894

Browse files
author
Jacy Caruso
committed
fix: Implicit 'any' types
1 parent f78b032 commit 80ec894

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export class GPU {
1111
constructor(settings?: IGPUSettings);
1212
functions: IGPUFunction[];
1313
nativeFunctions: IGPUNativeFunction[];
14-
addFunction(kernel: KernelFunction, settings?: IGPUFunctionSettings);
15-
addNativeFunction(name: string, source: string);
14+
addFunction(kernel: KernelFunction, settings?: IGPUFunctionSettings): this;
15+
addNativeFunction(name: string, source: string): this;
1616
combineKernels(): KernelFunction;
1717
createKernel(kernel: KernelFunction, settings?: IKernelSettings): IKernelRunShortcut;
1818
createKernelMap(): IKernelRunShortcut;
19-
destroy();
19+
destroy(): void;
2020
Kernel: typeof Kernel;
2121
mode: string;
2222
canvas: any;
@@ -133,8 +133,8 @@ export class Kernel {
133133
): KernelVariable
134134
toJSON(): object;
135135
exec(): Promise<KernelOutput>;
136-
setOutput(flag): this;
137-
setArgumentTypes(flag): this;
136+
setOutput(flag: any): this;
137+
setArgumentTypes(flag: any): this;
138138
setDebug(flag: boolean): this;
139139
setGraphical(flag: boolean): this;
140140
setLoopMaxIterations(flag: number): this;
@@ -276,7 +276,7 @@ export interface ISubKernel {
276276
export class FunctionBuilder {
277277
fromKernel(kernel: IKernelSettings, FunctionNode: FunctionNode, extraNodeOptions?: any): FunctionBuilder;
278278
constructor(settings: IFunctionBuilderSettings);
279-
addFunctionNode(functionNode: FunctionNode);
279+
addFunctionNode(functionNode: FunctionNode): void;
280280
traceFunctionCalls(functionName: string): string[];
281281
getStringFromFunctionNames(functionName?: string[]): string;
282282
getPrototypesFromFunctionNames(functionName?: string[]): string[];

0 commit comments

Comments
 (0)