Add all repos
This commit is contained in:
parent
faa12c60bc
commit
8a91c9b89b
369 changed files with 29047 additions and 28 deletions
26
metamigo-common/config/types.ts
Normal file
26
metamigo-common/config/types.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import convict from "convict";
|
||||
|
||||
/*
|
||||
interface SSMObj {
|
||||
path: string;
|
||||
}
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
interface ConvictSchemaObj<T = any> extends convict.SchemaObj<T> {
|
||||
// ssm?: SSMObj;
|
||||
/**
|
||||
* The config item will be ignored for purposes of config file generation
|
||||
*/
|
||||
skipGenerate?: boolean;
|
||||
}
|
||||
|
||||
export type ConvictSchema<T> = {
|
||||
[P in keyof T]: convict.Schema<T[P]> | ConvictSchemaObj<T[P]>;
|
||||
};
|
||||
|
||||
export interface ExtendedConvict<T> extends convict.Config<T> {
|
||||
isProd?: boolean;
|
||||
isTest?: boolean;
|
||||
isDev?: boolean;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue