fix(behavior-tree): export NodeExecutorMetadata as value instead of type (#406)

This commit is contained in:
YHH
2025-12-31 12:16:17 +08:00
committed by GitHub
parent cc6f12d470
commit 0de45279e6
2 changed files with 14 additions and 2 deletions

View 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.