Files
recap/node_modules/@start9labs/start-sdk/base/lib/util/nullIfEmpty.d.ts
T

8 lines
240 B
TypeScript

/**
* A useful tool when doing a getInputSpec.
* Look into the inputSpec {@link FileHelper} for an example of the use.
* @param s
* @returns
*/
export declare function nullIfEmpty<A extends Record<string, any>>(s: null | A): A | null;