aimpress-chatbot/node_modules/botbuilder-stdlib/lib/maybeCast.d.ts
“SamoilenkoVadym” 195299ece0 Initial commit
2025-04-27 17:05:18 +01:00

11 lines
No EOL
393 B
TypeScript

import { Newable } from './types';
/**
* Maybe cast value to a particular type
*
* @template T type to maybe cast to
* @param {any} value value to maybe cast
* @param {Newable<T>} ctor optional class to perform instanceof check
* @returns {T} value, maybe casted to T
*/
export declare function maybeCast<T>(value: unknown, ctor?: Newable<T>): T;
//# sourceMappingURL=maybeCast.d.ts.map