Skip to content

Commit 2a5e16c

Browse files
feat(domain): add ApplicationProperties and update ApplicationConfig
Co-authored-by: Junie <junie@jetbrains.com>
1 parent e82ac42 commit 2a5e16c

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/domain/types/ApplicationConfig.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ApplicationProperties } from "./ApplicationProperties";
12
import { Newable } from "./Newable";
23
import { Provider } from "./Provider";
34

@@ -19,12 +20,12 @@ export interface ApplicationConfig {
1920
/**
2021
* The prefix for API routes.
2122
*
22-
* @default "/api/"
23+
* @default "/api"
2324
*/
24-
apiPrefix?: string;
25+
apiPrefix?: string | null;
2526

2627
/**
2728
* Application configuration properties.
2829
*/
29-
config?: Record<string, any>;
30+
config?: ApplicationProperties;
3031
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Interface representing application configuration properties.
3+
*/
4+
export type ApplicationProperties = Record<string, any>;

src/domain/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export * from "./AppsScriptMenuProxy";
22
export * from "./ApplicationConfig";
3+
export * from "./ApplicationProperties";
34
export * from "./ClassProvider";
45
export * from "./ErrorResponse";
56
export * from "./ExistingProvider";

0 commit comments

Comments
 (0)