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

jssm and jssm-cli should be able to produce ts definitions as strings #509

Open
Tracked by #1079
StoneCypher opened this issue Apr 24, 2020 · 0 comments
Open
Tracked by #1079

Comments

@StoneCypher
Copy link
Owner

StoneCypher commented Apr 24, 2020

if you have a machine like

landing -> login -> dashboard-> [tools graphs actions] ~> logout;

image

something like

const machine = sm`landing ...`;
console.log( machine.ts_state_enum(), 'ws_' );

should echo

type ws_states = 'landing' | 'login' | 'dashboard' | 'tools' | 'graphs' | 'actions' | 'logout';

There should be something similar for actions

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

No branches or pull requests

1 participant