File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
apps/svelte.dev/content/docs/kit/98-reference Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -1928,14 +1928,16 @@ The return value of a remote `command` function. See [Remote functions](/docs/ki
19281928<div class =" ts-block " >
19291929
19301930``` dts
1931- type RemoteCommand<Input, Output> = (arg: Input) => Promise<
1932- Awaited<Output>
1933- > & {
1934- updates(
1935- ...queries: Array<
1936- RemoteQuery<any> | RemoteQueryOverride
1937- >
1938- ): Promise<Awaited<Output>>;
1931+ type RemoteCommand<Input, Output> = {
1932+ (arg: Input): Promise<Awaited<Output>> & {
1933+ updates(
1934+ ...queries: Array<
1935+ RemoteQuery<any> | RemoteQueryOverride
1936+ >
1937+ ): Promise<Awaited<Output>>;
1938+ };
1939+ /** The number of pending command executions */
1940+ get pending(): number;
19391941};
19401942```
19411943
@@ -1991,6 +1993,8 @@ type RemoteForm<Result> = {
19911993 ): Omit<RemoteForm<Result>, 'for'>;
19921994 /** The result of the form submission */
19931995 get result(): Result | undefined;
1996+ /** The number of pending submissions */
1997+ get pending(): number;
19941998 /** Spread this onto a `<button>` or `<input type="submit">` */
19951999 buttonProps: {
19962000 type: 'submit';
@@ -2016,6 +2020,8 @@ type RemoteForm<Result> = {
20162020 formaction: string;
20172021 onclick: (event: Event) => void;
20182022 };
2023+ /** The number of pending submissions */
2024+ get pending(): number;
20192025 };
20202026};
20212027```
You can’t perform that action at this time.
0 commit comments