From 065c5507232c589a78b7543e49617863018fd045 Mon Sep 17 00:00:00 2001 From: Xie Yuheng Date: Sat, 29 Jul 2023 13:09:41 +0800 Subject: [PATCH] remove `NodeDefinition.fullName` --- TODO.md | 2 -- src/lang/graph/createNode.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index adc17851..4da53550 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,3 @@ -`NodeDefinition.fullName` - quit using `Action` `Action` should be type instead of class diff --git a/src/lang/graph/createNode.ts b/src/lang/graph/createNode.ts index 8b9536f8..36f6130b 100644 --- a/src/lang/graph/createNode.ts +++ b/src/lang/graph/createNode.ts @@ -1,4 +1,4 @@ -import * as Definitions from "../definitions" +import { NodeKind } from "../definitions" import { Node, createPort } from "../graph" import { Mod } from "../mod" import { Type } from "../type" @@ -6,7 +6,7 @@ import { Type } from "../type" let counter = 0 export function createNode( - kind: Definitions.NodeKind, + kind: NodeKind, mod: Mod, name: string, inputTypes: Array,