mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 18:31:54 +00:00
15 lines
381 B
TypeScript
15 lines
381 B
TypeScript
import { ConfigFile } from "./config_file";
|
|
|
|
/**
|
|
* A useful tool when doing a getConfig.
|
|
* Look into the config {@link ConfigFile} for an example of the use.
|
|
* @param s
|
|
* @returns
|
|
*/
|
|
export function nullIfEmpty(s: Record<string, unknown>) {
|
|
return Object.keys(s).length === 0 ? null : s;
|
|
}
|
|
|
|
export { setupConfigExports } from "./setup_config_export";
|
|
export { ConfigFile };
|