import * as NullOrUndefinedCheck from "../../../../../sync/check/generic/null-or-undefined"; import * as check from "../../../../../sync/check/generic/object"; export type MaybeInstanceOfErrorCodeType = check.InstanceOfErrorCodeType; export function checkMaybeInstanceOf (mixed : any, clazz : { new(...args : any[]) : T, name : string }) : undefined|MaybeInstanceOfErrorCodeType { return NullOrUndefinedCheck.checkNullOrUndefinedOr( mixed, () => { return check.checkInstanceOf(mixed, clazz) } ); }