Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - Please provide typescript support #242

Open
victor-axelsson opened this issue Oct 14, 2024 · 2 comments
Open

Request - Please provide typescript support #242

victor-axelsson opened this issue Oct 14, 2024 · 2 comments

Comments

@victor-axelsson
Copy link

About

In order to work with a more modern Javascript environment it would be nice to also provide types that can be installed via yarn or npm:

  • yarn add -D @types/js-son-agent
  • npm install --save-dev yarn add -D @types/js-son-agent

Also update the readme to include examples with TS syntax. E.g:

import { Belief, Plan, Agent, Environment } from 'js-son-agent';
@victor-axelsson
Copy link
Author

You can generate the types with this thing: https://github.com/DefinitelyTyped/DefinitelyTyped

@TimKam
Copy link
Owner

TimKam commented Oct 26, 2024

Thank you! I think it's a very reasonable suggestion but I am not sure when I will get around to actually do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants