fix(behavior-tree): export NodeExecutorMetadata as value instead of type (#406)
This commit is contained in:
12
.changeset/fix-behavior-tree-decorator-export.md
Normal file
12
.changeset/fix-behavior-tree-decorator-export.md
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
"@esengine/behavior-tree": patch
|
||||
---
|
||||
|
||||
fix(behavior-tree): export NodeExecutorMetadata as value instead of type
|
||||
|
||||
Fixed the export of `NodeExecutorMetadata` decorator in `execution/index.ts`.
|
||||
Previously it was exported as `export type { NodeExecutorMetadata }` which only
|
||||
exported the type signature, not the actual function. This caused runtime errors
|
||||
in Cocos Creator: "TypeError: (intermediate value) is not a function".
|
||||
|
||||
Changed to `export { NodeExecutorMetadata }` to properly export the decorator function.
|
||||
Reference in New Issue
Block a user