chore: update .dockerignore and biome.json to include new directories and remove unused object-values type

This commit is contained in:
javayhu 2025-08-26 00:20:27 +08:00
parent 7cc1fd5835
commit 895e02bfdd
4 changed files with 10 additions and 30 deletions

View File

@ -1,4 +1,6 @@
.cursor
.claude
.kiro
.github
.next
.open-next
@ -10,4 +12,4 @@
node_modules
**/node_modules
Dockerfile
LICENSE
LICENSE

View File

@ -21,7 +21,7 @@ If you found anything that could be improved, please let me know.
- 📚 documentation: [mksaas.com/docs](https://mksaas.com/docs)
- 🗓️ roadmap: [mksaas roadmap](https://mksaas.link/roadmap)
- 👨‍💻 discord: [mksaas.link/discord](https://mksaas.link/discord)
- 📹 video (WIP): [mksaas.link/youtube](https://mksaas.link/youtube)
- 📹 video: [mksaas.link/youtube](https://mksaas.link/youtube)
## Repositories

View File

@ -12,6 +12,8 @@
".open-next/**",
".wrangler/**",
".cursor/**",
".claude/**",
".kiro/**",
".vscode/**",
".source/**",
"node_modules/**",
@ -27,8 +29,7 @@
"src/app/[[]locale]/preview/**",
"src/payment/types.ts",
"src/credits/types.ts",
"src/types/index.d.ts",
"public/sw.js"
"src/types/index.d.ts"
]
},
"formatter": {
@ -75,6 +76,8 @@
".open-next/**",
".wrangler/**",
".cursor/**",
".claude/**",
".kiro/**",
".vscode/**",
".source/**",
"node_modules/**",
@ -90,8 +93,7 @@
"src/app/[[]locale]/preview/**",
"src/payment/types.ts",
"src/credits/types.ts",
"src/types/index.d.ts",
"public/sw.js"
"src/types/index.d.ts"
]
},
"javascript": {

View File

@ -1,24 +0,0 @@
/**
* ObjectValues<T> is a utility type that extracts a union type of all value types in an object
*
* For example, in the AppInfo use case:
* const AppInfo = {
* APP_NAME: string,
* APP_DESCRIPTION: string,
* PRODUCTION: boolean,
* VERSION: string
* } as const
*
* type AppInfo = ObjectValues<typeof AppInfo>
* equals to: type AppInfo = string | boolean
*
* How it works:
* 1. keyof T gets the union of all keys in object T
* 2. T[keyof T] uses indexed access to get all value types
*
* Benefits:
* - Automatically extracts all possible value types from an object
* - Makes type definitions more precise and automated
* - Reduces manual type maintenance work
*/
export type ObjectValues<T> = T[keyof T];