BehaviorTree.js icon indicating copy to clipboard operation
BehaviorTree.js copied to clipboard

Typescript them all

Open Calamari opened this issue 4 years ago • 7 comments

  • [x] Add Types to everything
  • [ ] Experiment sufficiently
  • [ ] Rewrite README to mention Typescript properly

Calamari avatar Nov 07 '21 11:11 Calamari

Hello! I'm very interested in using this library but I'm unsure whether it's still maintained.

How is the TypeScript version going? What are you missing before you can release it?

I can use it to maybe give you some feedback if you publish it to npm with any kind of name. (Same for the parallel branch)

Telokis avatar Dec 03 '22 18:12 Telokis

Hello @Telokis. It is still maintained. I just didn't came around to fully test the TypeScript version to my hearts content. And I don't want to release a version that is broken for some people. But I probably can but it out later as a release candidate. :+1: If you like to play with it, I am happy to do that. You are the first one to ask for a TypeScript version :)

Calamari avatar Dec 05 '22 08:12 Calamari

Hello and thank you for the answer!

If you can, I'll be happy to test the TypeScript version! It's difficult to find a proper behavior tree library in JS and even more so in TypeScript!
Just let me know the tag once you've published it to npm and I'll start using the thing to design my AI. It's the first time I use a BT so it probably won't be insane but it's still something!

(I was asking for parallel/async as well because my real AI will use websockets to perform actions but that can come later, I'll do a synchronous prototype in the first time.)

Telokis avatar Dec 05 '22 12:12 Telokis

So I added the parallel branch stuff and this into one release: [email protected]

It should be published by now.

Calamari avatar Dec 05 '22 15:12 Calamari

I will also test this new support and let you know what I find. :)

Tresky avatar Jan 20 '23 19:01 Tresky

Just installed the beta version you released. It seems the index.d.ts file did not make it into the build. Screen Shot 2023-01-20 at 2 29 03 PM

Tresky avatar Jan 20 '23 19:01 Tresky

@Tresky Thanks, very much for trying it out. You are right, during the publishing step, all files except those mentioned have been omitted. :facepalm:

But it should work now with the next beta release: [email protected] Sorry, for that.

Calamari avatar Jan 21 '23 16:01 Calamari