All checks were successful
Frontend CI / build (push) Successful in 6m14s
### Description - As the title ### Package Changes _No response_ ### Screenshots |Scenario|Screenshot| |-|-| |Posts list|| |Empty input|| |Pattern not matched|| ### Reference Resolve #126. ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch Reviewed-on: #139 Co-authored-by: SquidSpirit <squid@squidspirit.com> Co-committed-by: SquidSpirit <squid@squidspirit.com>
8 lines
279 B
TypeScript
8 lines
279 B
TypeScript
import type { AsyncState } from '$lib/common/adapter/presenter/asyncState';
|
|
import type { Readable } from 'svelte/store';
|
|
|
|
export interface BaseStore<T extends AsyncState<unknown>, U = void> {
|
|
get subscribe(): Readable<T>['subscribe'];
|
|
get trigger(): (arg: U) => Promise<T>;
|
|
}
|