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

Migrate the project to typescript #13

Open
acidmaksim opened this issue Aug 5, 2022 · 8 comments
Open

Migrate the project to typescript #13

acidmaksim opened this issue Aug 5, 2022 · 8 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@acidmaksim
Copy link
Contributor

No description provided.

@acidmaksim acidmaksim changed the title migrate the project to typescript Ьigrate the project to typescript Aug 5, 2022
@acidmaksim acidmaksim changed the title Ьigrate the project to typescript Migrate the project to typescript Aug 5, 2022
@CryFromTheHeart
Copy link

Я возьму

@CryFromTheHeart
Copy link

Не получается выполнить

@acidmaksim
Copy link
Contributor Author

Right now the project is written in React without TypeScript. It would be very cool to translate it to TS while it is in this state. And further develop it in that language with typing.

@Wenn911
Copy link
Contributor

Wenn911 commented Sep 9, 2022

Возьму в работу

@Wenn911
Copy link
Contributor

Wenn911 commented Sep 14, 2022

Как определить тип state.value, если мы стейт получаем из контекста, который { } и по сути value не существует до нажатия на кнопку. В самой либе xstate, такая конструкция определяется через useMachine(toggleMachine), в котором уже присутствуют стейты

@acidmaksim
Copy link
Contributor Author

@mikhaylov-ya we need you help

@mikhaylov-ya
Copy link

не шарю за TS. @fey кто тут сможет помочь?

@ashikov ashikov assigned Wenn911 and unassigned mikhaylov-ya Sep 27, 2022
@ashikov ashikov added enhancement New feature or request help wanted Extra attention is needed labels Sep 27, 2022
@rabbanirizwan
Copy link

Как определить тип state.value, если мы стейт получаем из контекста, который { } и по сути value не существует до нажатия на кнопку. В самой либе xstate, такая конструкция определяется через useMachine(toggleMachine), в котором уже присутствуют стейты

we can do something like that

interface StateProps{
state:{
value?: string
}
}
const state: StateProps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants