Florian Bouillon ff07f8f4a5 fet: Add changes lol
Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
2023-06-28 17:30:18 +02:00

34 lines
823 B
TypeScript

/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
interface ImportMetaEnv {
PRUSASLICER_PATH?: string
BAMBUSTUDIO_PATH?: string
MONGODB?: string
PRIVATE_KEY?: string
PUBLIC_KEY?: string
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
declare namespace App {
interface Locals {
/**
* authentification key is the api key or the session token
*/
authKey?: string
responseBuilder: {
body(body: string | Buffer | object | null | undefined): this
headers(headers: Record<string, string>): this
addHeader(key: string, value: string): this
addHeaders(headers: Record<string, string>): this
removeHeader(key: string): this
status(status: number): this
build(): Response
} // ./libs/ResponseBuilder object
}
}