mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-24 01:01:06 +01:00
Compare commits
1 commit
164bc09cdd
...
67f54430f9
Author | SHA1 | Date | |
---|---|---|---|
67f54430f9 |
4 changed files with 10 additions and 9 deletions
Binary file not shown.
|
@ -9,7 +9,7 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/cloudflare": "^11.0.4",
|
"@astrojs/cloudflare": "^11.0.1",
|
||||||
"@astrojs/preact": "^3.5.1",
|
"@astrojs/preact": "^3.5.1",
|
||||||
"@astrojs/prefetch": "^0.2.1",
|
"@astrojs/prefetch": "^0.2.1",
|
||||||
"@astrojs/sitemap": "^3.1.6",
|
"@astrojs/sitemap": "^3.1.6",
|
||||||
|
@ -25,7 +25,6 @@
|
||||||
"tailwindcss": "^3.3.1"
|
"tailwindcss": "^3.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cloudflare/workers-types": "^4.20240806.0",
|
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
"cssnano": "^6.0.0",
|
"cssnano": "^6.0.0",
|
||||||
"postcss": "^8.4.21",
|
"postcss": "^8.4.21",
|
||||||
|
|
9
apps/website/src/env.d.ts
vendored
9
apps/website/src/env.d.ts
vendored
|
@ -1,6 +1,7 @@
|
||||||
/// <reference types="astro/client" />
|
/// <reference types="astro/client" />
|
||||||
|
|
||||||
type Env = {
|
type D1Database = import("@cloudflare/workers-types").D1Database;
|
||||||
|
type ENV = {
|
||||||
GITHUB_APP_NAME: string;
|
GITHUB_APP_NAME: string;
|
||||||
DISCORD_CLIENT_ID: string;
|
DISCORD_CLIENT_ID: string;
|
||||||
DISCORD_CLIENT_SECRET: string;
|
DISCORD_CLIENT_SECRET: string;
|
||||||
|
@ -9,7 +10,7 @@ type Env = {
|
||||||
DB: D1Database;
|
DB: D1Database;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*export interface Guild {
|
export interface Guild {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
icon: string;
|
icon: string;
|
||||||
|
@ -20,9 +21,9 @@ type Env = {
|
||||||
export interface MutualeGuild {
|
export interface MutualeGuild {
|
||||||
mutual: boolean;
|
mutual: boolean;
|
||||||
guild: Guild;
|
guild: Guild;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
type Runtime = import("@astrojs/cloudflare").Runtime<Env>;
|
type Runtime = import("@astrojs/cloudflare").Runtime<ENV>;
|
||||||
|
|
||||||
// https://github.com/withastro/astro/issues/7394#issuecomment-1975657601
|
// https://github.com/withastro/astro/issues/7394#issuecomment-1975657601
|
||||||
declare namespace App {
|
declare namespace App {
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{
|
{
|
||||||
"extends": "astro/tsconfigs/strict",
|
"extends": "astro/tsconfigs/strictest",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"types": ["@cloudflare/workers-types"],
|
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
|
"allowJs": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"~/*": ["src/*"]
|
"~/*": ["src/*"]
|
||||||
}
|
},
|
||||||
|
"types": ["./src/env.d.ts"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue