mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-07 04:22:09 +00:00
fix build errors
This commit is contained in:
@@ -33,6 +33,9 @@ export const Service = {
|
||||
Users: 'users'
|
||||
} as const;
|
||||
|
||||
export type ServiceType = typeof Service;
|
||||
export type ServiceValue = (typeof Service)[keyof typeof Service];
|
||||
|
||||
export const Platform = {
|
||||
ClientWeb: 'client-web',
|
||||
ClientFlutter: 'client-flutter',
|
||||
@@ -57,6 +60,9 @@ export const Platform = {
|
||||
ServerRest: 'server-rest'
|
||||
} as const;
|
||||
|
||||
type PlatformType = typeof Platform;
|
||||
export type Platform = (typeof Platform)[keyof typeof Platform];
|
||||
|
||||
export const Framework = {
|
||||
NextJs: 'Next.js',
|
||||
SvelteKit: 'SvelteKit',
|
||||
@@ -126,7 +132,7 @@ export const platformMap: Record<Language | string, string> = {
|
||||
go: 'Go'
|
||||
};
|
||||
|
||||
export const serviceMap: Record<Service, string> = {
|
||||
export const serviceMap: Record<ServiceValue, string> = {
|
||||
[Service.Account]: 'Account',
|
||||
[Service.Avatars]: 'Avatars',
|
||||
[Service.Databases]: 'Databases',
|
||||
|
||||
Reference in New Issue
Block a user