Skip to content

Commit dada03f

Browse files
committed
regenerate
1 parent 6bdb573 commit dada03f

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

packages/kit/types/index.d.ts

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,35 +2634,40 @@ declare module '$app/server' {
26342634
*
26352635
* See [Remote functions](https://svelte.dev/docs/kit/remote-functions#command) for full documentation.
26362636
*
2637-
* */
2637+
* @since 2.27
2638+
*/
26382639
export function command<Output>(fn: () => Output): RemoteCommand<void, Output>;
26392640
/**
26402641
* Creates a remote command. When called from the browser, the function will be invoked on the server via a `fetch` call.
26412642
*
26422643
* See [Remote functions](https://svelte.dev/docs/kit/remote-functions#command) for full documentation.
26432644
*
2644-
* */
2645+
* @since 2.27
2646+
*/
26452647
export function command<Input, Output>(validate: "unchecked", fn: (arg: Input) => Output): RemoteCommand<Input, Output>;
26462648
/**
26472649
* Creates a remote command. When called from the browser, the function will be invoked on the server via a `fetch` call.
26482650
*
26492651
* See [Remote functions](https://svelte.dev/docs/kit/remote-functions#command) for full documentation.
26502652
*
2651-
* */
2653+
* @since 2.27
2654+
*/
26522655
export function command<Schema extends StandardSchemaV1, Output>(validate: Schema, fn: (arg: StandardSchemaV1.InferOutput<Schema>) => Output): RemoteCommand<StandardSchemaV1.InferOutput<Schema>, Output>;
26532656
/**
26542657
* Creates a form object that can be spread onto a `<form>` element.
26552658
*
26562659
* See [Remote functions](https://svelte.dev/docs/kit/remote-functions#form) for full documentation.
26572660
*
2658-
* */
2661+
* @since 2.27
2662+
*/
26592663
export function form<T>(fn: (data: FormData) => MaybePromise<T>): RemoteForm<T>;
26602664
/**
26612665
* Creates a remote prerender function. When called from the browser, the function will be invoked on the server via a `fetch` call.
26622666
*
26632667
* See [Remote functions](https://svelte.dev/docs/kit/remote-functions#prerender) for full documentation.
26642668
*
2665-
* */
2669+
* @since 2.27
2670+
*/
26662671
export function prerender<Output>(fn: () => MaybePromise<Output>, options?: {
26672672
inputs?: RemotePrerenderInputsGenerator<void>;
26682673
dynamic?: boolean;
@@ -2672,7 +2677,8 @@ declare module '$app/server' {
26722677
*
26732678
* See [Remote functions](https://svelte.dev/docs/kit/remote-functions#prerender) for full documentation.
26742679
*
2675-
* */
2680+
* @since 2.27
2681+
*/
26762682
export function prerender<Input, Output>(validate: "unchecked", fn: (arg: Input) => MaybePromise<Output>, options?: {
26772683
inputs?: RemotePrerenderInputsGenerator<Input>;
26782684
dynamic?: boolean;
@@ -2682,7 +2688,8 @@ declare module '$app/server' {
26822688
*
26832689
* See [Remote functions](https://svelte.dev/docs/kit/remote-functions#prerender) for full documentation.
26842690
*
2685-
* */
2691+
* @since 2.27
2692+
*/
26862693
export function prerender<Schema extends StandardSchemaV1, Output>(schema: Schema, fn: (arg: StandardSchemaV1.InferOutput<Schema>) => MaybePromise<Output>, options?: {
26872694
inputs?: RemotePrerenderInputsGenerator<StandardSchemaV1.InferOutput<Schema>>;
26882695
dynamic?: boolean;
@@ -2692,21 +2699,24 @@ declare module '$app/server' {
26922699
*
26932700
* See [Remote functions](https://svelte.dev/docs/kit/remote-functions#query) for full documentation.
26942701
*
2695-
* */
2702+
* @since 2.27
2703+
*/
26962704
export function query<Output>(fn: () => MaybePromise<Output>): RemoteQueryFunction<void, Output>;
26972705
/**
26982706
* Creates a remote query. When called from the browser, the function will be invoked on the server via a `fetch` call.
26992707
*
27002708
* See [Remote functions](https://svelte.dev/docs/kit/remote-functions#query) for full documentation.
27012709
*
2702-
* */
2710+
* @since 2.27
2711+
*/
27032712
export function query<Input, Output>(validate: "unchecked", fn: (arg: Input) => MaybePromise<Output>): RemoteQueryFunction<Input, Output>;
27042713
/**
27052714
* Creates a remote query. When called from the browser, the function will be invoked on the server via a `fetch` call.
27062715
*
27072716
* See [Remote functions](https://svelte.dev/docs/kit/remote-functions#query) for full documentation.
27082717
*
2709-
* */
2718+
* @since 2.27
2719+
*/
27102720
export function query<Schema extends StandardSchemaV1, Output>(schema: Schema, fn: (arg: StandardSchemaV1.InferOutput<Schema>) => MaybePromise<Output>): RemoteQueryFunction<StandardSchemaV1.InferOutput<Schema>, Output>;
27112721
type RemotePrerenderInputsGenerator<Input = any> = () => MaybePromise<Input[]>;
27122722
type MaybePromise<T> = T | Promise<T>;

0 commit comments

Comments
 (0)