Skip to content

Commit

Permalink
update node definition
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongfq committed Aug 13, 2024
1 parent ba1145c commit d7a2ce0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/misc/b3type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,34 @@ import { TreeGraphData as G6TreeGraphData } from "@antv/g6";

export type NodeType = "Action" | "Composite" | "Decorator" | "Condition" | "Other" | "Error";

export interface NodeArgOption {
name: string;
value: string | number;
}

export interface NodeArg {
name: string;
type:
| "boolean"
| "boolean?"
| "boolean[]"
| "int"
| "int?"
| "int[]"
| "float"
| "float?"
| "float[]"
| "string"
| "string?"
| "string[]"
| "json"
| "json?"
| "json[]"
| "enum"
| "enum?"
| "enum[]"
| "code"
| "code?";
| "code?"
| "code[]";
desc: string;
oneof?: string;
default?: unknown;
options?: NodeArgOption[];
options?: { name: string; value: string | number }[];
}

export interface NodeDef {
Expand Down

0 comments on commit d7a2ce0

Please sign in to comment.