@autorest/common
Version:
Autorest common utilities
8 lines • 393 B
TypeScript
export declare function isDefined<T>(value: T | undefined | null): value is T;
/**
* Takes a configuration value that can be either an array, a single value or empty and returns an array with all values.
* @param value Value to wrap in an array.
* @returns Array of all the values.
*/
export declare function arrayify<T>(value: T | T[] | undefined): T[];
//# sourceMappingURL=misc.d.ts.map