Skip to content

Commit

Permalink
Merge pull request #19896 from martinRenou/node_flow
Browse files Browse the repository at this point in the history
Node: Add Flow interface
  • Loading branch information
mrdoob committed Jul 22, 2020
2 parents 8bc2f1c + 0b987ee commit 5936665
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/jsm/nodes/core/Node.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { NodeBuilder } from './NodeBuilder';

export interface Flow {
result: string;
code: string;
extra: object;
}

export class Node {

constructor( type?: string );
Expand All @@ -13,8 +19,8 @@ export class Node {
hashProperties: string[] | undefined;

analyze( builder: NodeBuilder, settings?: object ): void;
analyzeAndFlow( builder: NodeBuilder, output: string, settings?: object ): object;
flow( builder: NodeBuilder, output: string, settings?: object ): object;
analyzeAndFlow( builder: NodeBuilder, output: string, settings?: object ): Flow;
flow( builder: NodeBuilder, output: string, settings?: object ): Flow;
build( builder: NodeBuilder, output: string, uuid?: string ): string;
generate( builder: NodeBuilder, output: string, uuid?: string, type?: string, ns?: string ): string;
appendDepsNode( builder: NodeBuilder, data: object, output: string ): void;
Expand Down

0 comments on commit 5936665

Please sign in to comment.