mirror of https://github.com/buster-so/buster.git
94 lines
1.8 KiB
TypeScript
94 lines
1.8 KiB
TypeScript
// Global type declarations for static image imports
|
|
declare module '*.png' {
|
|
const content: {
|
|
src: string;
|
|
height: number;
|
|
width: number;
|
|
blurDataURL?: string;
|
|
};
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.jpg' {
|
|
const content: {
|
|
src: string;
|
|
height: number;
|
|
width: number;
|
|
blurDataURL?: string;
|
|
};
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.jpeg' {
|
|
const content: {
|
|
src: string;
|
|
height: number;
|
|
width: number;
|
|
blurDataURL?: string;
|
|
};
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.gif' {
|
|
const content: {
|
|
src: string;
|
|
height: number;
|
|
width: number;
|
|
blurDataURL?: string;
|
|
};
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.webp' {
|
|
const content: {
|
|
src: string;
|
|
height: number;
|
|
width: number;
|
|
blurDataURL?: string;
|
|
};
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.svg' {
|
|
const content: {
|
|
src: string;
|
|
height: number;
|
|
width: number;
|
|
blurDataURL?: string;
|
|
};
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.ico' {
|
|
const content: {
|
|
src: string;
|
|
height: number;
|
|
width: number;
|
|
blurDataURL?: string;
|
|
};
|
|
export default content;
|
|
}
|
|
|
|
declare global {
|
|
namespace NodeJS {
|
|
interface ProcessEnv {
|
|
NODE_ENV: 'development' | 'production' | 'test';
|
|
NEXT_PUBLIC_API_URL: string;
|
|
NEXT_PUBLIC_API2_URL: string;
|
|
NEXT_PUBLIC_WEB_SOCKET_URL: string;
|
|
NEXT_PUBLIC_URL: string;
|
|
NEXT_PUBLIC_SUPABASE_URL: string;
|
|
NEXT_PUBLIC_SUPABASE_ANON_KEY: string;
|
|
NEXT_PUBLIC_POSTHOG_KEY?: string;
|
|
NEXT_PUBLIC_POSTHOG_HOST?: string;
|
|
POSTHOG_API_KEY?: string;
|
|
POSTHOG_ENV_ID?: string;
|
|
NEXT_PUBLIC_USER?: string;
|
|
NEXT_PUBLIC_USER_PASSWORD?: string;
|
|
NEXT_ENABLE_TANSTACK_PANEL?: 'true' | 'false';
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|