@@ -11,12 +11,12 @@ export class GPU {
11
11
constructor ( settings ?: IGPUSettings ) ;
12
12
functions : IGPUFunction [ ] ;
13
13
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 ;
16
16
combineKernels ( ) : KernelFunction ;
17
17
createKernel ( kernel : KernelFunction , settings ?: IKernelSettings ) : IKernelRunShortcut ;
18
18
createKernelMap ( ) : IKernelRunShortcut ;
19
- destroy ( ) ;
19
+ destroy ( ) : void ;
20
20
Kernel : typeof Kernel ;
21
21
mode : string ;
22
22
canvas : any ;
@@ -133,8 +133,8 @@ export class Kernel {
133
133
) : KernelVariable
134
134
toJSON ( ) : object ;
135
135
exec ( ) : Promise < KernelOutput > ;
136
- setOutput ( flag ) : this;
137
- setArgumentTypes ( flag ) : this;
136
+ setOutput ( flag : any ) : this;
137
+ setArgumentTypes ( flag : any ) : this;
138
138
setDebug ( flag : boolean ) : this;
139
139
setGraphical ( flag : boolean ) : this;
140
140
setLoopMaxIterations ( flag : number ) : this;
@@ -276,7 +276,7 @@ export interface ISubKernel {
276
276
export class FunctionBuilder {
277
277
fromKernel ( kernel : IKernelSettings , FunctionNode : FunctionNode , extraNodeOptions ?: any ) : FunctionBuilder ;
278
278
constructor ( settings : IFunctionBuilderSettings ) ;
279
- addFunctionNode ( functionNode : FunctionNode ) ;
279
+ addFunctionNode ( functionNode : FunctionNode ) : void ;
280
280
traceFunctionCalls ( functionName : string ) : string [ ] ;
281
281
getStringFromFunctionNames ( functionName ?: string [ ] ) : string ;
282
282
getPrototypesFromFunctionNames ( functionName ?: string [ ] ) : string [ ] ;
0 commit comments