Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/kit/src/exports/env/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/** @import { EnvVarConfig } from '@sveltejs/kit' */

/**
* Utility for defining [environment variables](https://svelte.dev/docs/kit/environment-variables),
* which are made available via `$app/env/public` and `$app/env/private`.
* @template {Record<string, EnvVarConfig<any>>} T
* @template {Record<string, import('@sveltejs/kit').EnvVarConfig<any>>} T
* @param {T} variables
* @returns {T}
*/
Expand Down
19 changes: 9 additions & 10 deletions packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3026,7 +3026,7 @@ declare module '@sveltejs/kit' {
}>;
export const VERSION: string;
class HttpError_1 {

constructor(status: number, body: {
message: string;
} extends App.Error ? (App.Error | string | undefined) : App.Error);
Expand All @@ -3035,7 +3035,7 @@ declare module '@sveltejs/kit' {
toString(): string;
}
class Redirect_1 {

constructor(status: 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308, location: string);
status: 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308;
location: string;
Expand All @@ -3046,12 +3046,11 @@ declare module '@sveltejs/kit' {
}

declare module '@sveltejs/kit/env' {
import type { EnvVarConfig } from '@sveltejs/kit';
/**
* Utility for defining [environment variables](https://svelte.dev/docs/kit/environment-variables),
* which are made available via `$app/env/public` and `$app/env/private`.
* */
export function defineEnvVars<T extends Record<string, EnvVarConfig<any>>>(variables: T): T;
export function defineEnvVars<T extends Record<string, import("@sveltejs/kit").EnvVarConfig<any>>>(variables: T): T;

export {};
}
Expand Down Expand Up @@ -3668,9 +3667,9 @@ declare module '$app/server' {
*
* */
function live<Output>(fn: (arg: void) => RemoteLiveQueryUserFunctionReturnType<Output>): RemoteLiveQueryFunction<void, Output>;

function live<Input, Output>(validate: "unchecked", fn: (arg: Input) => RemoteLiveQueryUserFunctionReturnType<Output>): RemoteLiveQueryFunction<Input, Output>;

function live<Schema extends StandardSchemaV1, Output>(schema: Schema, fn: (arg: StandardSchemaV1.InferOutput<Schema>) => RemoteLiveQueryUserFunctionReturnType<Output>): RemoteLiveQueryFunction<StandardSchemaV1.InferInput<Schema>, Output, StandardSchemaV1.InferOutput<Schema>>;
}
/**
Expand Down Expand Up @@ -3837,11 +3836,11 @@ declare module '$app/state' {

declare module '$app/stores' {
export function getStores(): {

page: typeof page;

navigating: typeof navigating;

updated: typeof updated;
};
/**
Expand Down Expand Up @@ -4025,4 +4024,4 @@ declare module '$app/types' {
export type Asset = ReturnType<AppTypes['Asset']>;
}

//# sourceMappingURL=index.d.ts.map
//# sourceMappingURL=index.d.ts.map
Loading