Files
bknd/app/src/core/config.ts
dswbx 26d1f2b583 feat: add admin options for entities and app shell
Introduced `BkndAdminEntitiesOptions` and `BkndAdminAppShellOptions` for advanced customization of entity actions, headers, footers, and app shell user menu. Updated related components, hooks, and types for seamless integration with the new configuration options.
2025-09-19 11:36:31 +02:00

32 lines
715 B
TypeScript

/**
* These are package global defaults.
*/
import type { Generated } from "kysely";
export type PrimaryFieldType<IdType = number | string> = IdType | Generated<IdType>;
export interface AppEntity<IdType = number | string> {
id: PrimaryFieldType<IdType>;
}
export interface DB {
// make sure to make unknown as "any"
/* [key: string]: {
id: PrimaryFieldType;
[key: string]: any;
}; */
// @todo: that's not good, but required for admin options
[key: string]: any;
}
export const config = {
server: {
default_port: 1337,
// resetted to root for now, bc bundling with vite
assets_path: "/",
},
data: {
default_primary_field: "id",
},
} as const;