Skip to content

exposing custom options and injecting new actions in TS #490

Closed Answered by posva
theoephraim asked this question in Help and Questions
Discussion options

You must be logged in to vote

This is an example of extending with custom types: https://codesandbox.io/s/pinia-example-forked-cuj8g?file=/src/pinia-plugin.ts:1237-1785 check the store.ts file for usage and you will see things are correctly typed

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@theoephraim
Comment options

@theoephraim
Comment options

@posva
Comment options

Comment options

You must be logged in to vote
2 replies
@theoephraim
Comment options

@posva
Comment options

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants