Preview:```ts
export type StoreOptions<
S,
A extends Record<string, (...args: any[]) => any>,
G
= {
state: () => S
actions: {
[K in keyof A]: (
state: S,
...args: Parameters<A[K]>
) => any
}
getters: {[K in keyof G]: (state: S) => G[K]}
}
export type Store<
S,
A extends Record<string, (...args: any[]) => any>,
G
= S & {
[K
...```
You can choose specific lines to embed by selecting them before copying the link.