We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
source
spread
reproduce
type Events = { first_event: 'first_event', second_event: 'second_event', } type Pages = { first_page: 'first_page', second_page: 'second_page', } const $pages = createStore<Pages | null>(null); const $events = createStore<Events | null>(null); const $isClientStarted = createStore(false); const clientStartEv = createEvent<{ events: Events; pages: Pages }>(); spread({ source: clientStartEv, targets: { events: $events, pages: $pages } });
No overload matches this call. Overload 1 of 2, '(config: { targets: { events?: Unit<Events | null> | undefined; pages?: Unit<Pages | null> | undefined; }; }): Event<Partial<{ events: Events | null; pages: Pages | null; }>>', gave the following error. Argument of type '{ source: Event<{ events: Events; pages: Pages; }>; targets: { events: Store<Events | null>; pages: Store<Pages | null>; }; }' is not assignable to parameter of type '{ targets: { events?: Unit<Events | null> | undefined; pages?: Unit<Pages | null> | undefined; }; }'. Object literal may only specify known properties, and 'source' does not exist in type '{ targets: { events?: Unit<Events | null> | undefined; pages?: Unit<Pages | null> | undefined; }; }'.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
reproduce
The text was updated successfully, but these errors were encountered: