Skip to content

Add type helpers #73

@dmitry-korolev

Description

@dmitry-korolev
type StappState<T extends Stapp<any, any>> = T extends Stapp<infer State, any> ? State : any>

// later
const app = createApp(...)
type State = StappState<typeof app>

Same for application api

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions