improve .env parsing
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
export interface AuthApiService {
|
||||
postCredentials(): Promise<string>;
|
||||
}
|
||||
|
||||
export const AuthApiService: Record<keyof AuthApiService, string> & {
|
||||
baseUrl: string;
|
||||
} = {
|
||||
baseUrl: "auth",
|
||||
postCredentials: "credentials",
|
||||
};
|
||||
@@ -1 +0,0 @@
|
||||
export * from "./auth-api-service";
|
||||
@@ -1 +0,0 @@
|
||||
export * from "./auth";
|
||||
@@ -1,2 +1,2 @@
|
||||
export * from "./api-services";
|
||||
export * from "./models";
|
||||
export * from "./utils";
|
||||
|
||||
3
packages/common/src/utils/common.ts
Normal file
3
packages/common/src/utils/common.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function isDefined<T>(obj: T): obj is NonNullable<T> {
|
||||
return obj !== undefined && obj !== null;
|
||||
}
|
||||
1
packages/common/src/utils/index.ts
Normal file
1
packages/common/src/utils/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./common";
|
||||
Reference in New Issue
Block a user