chore: update .dockerignore and biome.json to include new directories and remove unused object-values type
This commit is contained in:
parent
7cc1fd5835
commit
895e02bfdd
@ -1,4 +1,6 @@
|
|||||||
.cursor
|
.cursor
|
||||||
|
.claude
|
||||||
|
.kiro
|
||||||
.github
|
.github
|
||||||
.next
|
.next
|
||||||
.open-next
|
.open-next
|
||||||
@ -10,4 +12,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
**/node_modules
|
**/node_modules
|
||||||
Dockerfile
|
Dockerfile
|
||||||
LICENSE
|
LICENSE
|
||||||
|
@ -21,7 +21,7 @@ If you found anything that could be improved, please let me know.
|
|||||||
- 📚 documentation: [mksaas.com/docs](https://mksaas.com/docs)
|
- 📚 documentation: [mksaas.com/docs](https://mksaas.com/docs)
|
||||||
- 🗓️ roadmap: [mksaas roadmap](https://mksaas.link/roadmap)
|
- 🗓️ roadmap: [mksaas roadmap](https://mksaas.link/roadmap)
|
||||||
- 👨💻 discord: [mksaas.link/discord](https://mksaas.link/discord)
|
- 👨💻 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
|
## Repositories
|
||||||
|
|
||||||
|
10
biome.json
10
biome.json
@ -12,6 +12,8 @@
|
|||||||
".open-next/**",
|
".open-next/**",
|
||||||
".wrangler/**",
|
".wrangler/**",
|
||||||
".cursor/**",
|
".cursor/**",
|
||||||
|
".claude/**",
|
||||||
|
".kiro/**",
|
||||||
".vscode/**",
|
".vscode/**",
|
||||||
".source/**",
|
".source/**",
|
||||||
"node_modules/**",
|
"node_modules/**",
|
||||||
@ -27,8 +29,7 @@
|
|||||||
"src/app/[[]locale]/preview/**",
|
"src/app/[[]locale]/preview/**",
|
||||||
"src/payment/types.ts",
|
"src/payment/types.ts",
|
||||||
"src/credits/types.ts",
|
"src/credits/types.ts",
|
||||||
"src/types/index.d.ts",
|
"src/types/index.d.ts"
|
||||||
"public/sw.js"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"formatter": {
|
"formatter": {
|
||||||
@ -75,6 +76,8 @@
|
|||||||
".open-next/**",
|
".open-next/**",
|
||||||
".wrangler/**",
|
".wrangler/**",
|
||||||
".cursor/**",
|
".cursor/**",
|
||||||
|
".claude/**",
|
||||||
|
".kiro/**",
|
||||||
".vscode/**",
|
".vscode/**",
|
||||||
".source/**",
|
".source/**",
|
||||||
"node_modules/**",
|
"node_modules/**",
|
||||||
@ -90,8 +93,7 @@
|
|||||||
"src/app/[[]locale]/preview/**",
|
"src/app/[[]locale]/preview/**",
|
||||||
"src/payment/types.ts",
|
"src/payment/types.ts",
|
||||||
"src/credits/types.ts",
|
"src/credits/types.ts",
|
||||||
"src/types/index.d.ts",
|
"src/types/index.d.ts"
|
||||||
"public/sw.js"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"javascript": {
|
"javascript": {
|
||||||
|
@ -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];
|
|
Loading…
Reference in New Issue
Block a user