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
1928
1928
<div class =" ts-block " >
1929
1929
1930
1930
``` 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;
1939
1941
};
1940
1942
```
1941
1943
@@ -1991,6 +1993,8 @@ type RemoteForm<Result> = {
1991
1993
): Omit<RemoteForm<Result>, 'for'>;
1992
1994
/** The result of the form submission */
1993
1995
get result(): Result | undefined;
1996
+ /** The number of pending submissions */
1997
+ get pending(): number;
1994
1998
/** Spread this onto a `<button>` or `<input type="submit">` */
1995
1999
buttonProps: {
1996
2000
type: 'submit';
@@ -2016,6 +2020,8 @@ type RemoteForm<Result> = {
2016
2020
formaction: string;
2017
2021
onclick: (event: Event) => void;
2018
2022
};
2023
+ /** The number of pending submissions */
2024
+ get pending(): number;
2019
2025
};
2020
2026
};
2021
2027
```
You can’t perform that action at this time.
0 commit comments