Skip to content

Make more clear typing instructions #226

Description

@skorphil

Is your feature request related to a problem? Please describe.
I cant type several stores. Tried different combinations

const tables = {
  "records": tinyBaseJournalSchema,
  "persistentState": tinyBasePersistentStoreSchema
} 

const UiReactWithSchemas = UiReact as UiReact.WithSchemas<  
[typeof tables, NoValuesSchema]>; // not working

const { Provider } = UiReactWithSchemas;

type AppProps = {
  children: ReactElement;
};
export function TinyBaseProvider(props: AppProps) {
  return (
    <Provider
      storesById={{
        records: recordsStore, // not working
        persistentState: persistentStateStore, // not working
      }}
    >

Describe the solution you'd like
Clear example of how to type multitple stores

Additional context
Seems like project is kinda dead but anyway

Activity

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

Metadata

Metadata

Assignees

Labels

more info requiredCould you answer a few extra questions to clarify?

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions