Browse Source

JSM: Clean up

Mugen87 6 years ago
parent
commit
e2596fee4c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/jsm/nodes/core/NodeLib.d.ts

+ 2 - 2
examples/jsm/nodes/core/NodeLib.d.ts

@@ -2,7 +2,7 @@ import { Node } from './Node';
 import { NodeBuilder } from './NodeBuilder';
 
 export interface NodeLibKeyword {
-  callback: () => void;
+  callback: (builder: NodeBuilder) => void;
   cache?: object;
 }
 
@@ -12,7 +12,7 @@ export namespace NodeLib {
   export const keywords: object;
 
   export function add(node: Node): void;
-  export function addKeyword(name: string, callback: () => void, cache?: object): void;
+  export function addKeyword(name: string, callback: (builder: NodeBuilder) => void, cache?: object): void;
   export function remove(node: Node): void;
   export function removeKeyword(name: string): void;
   export function get(name: string): Node;