@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
16 lines • 446 B
TypeScript
/**
* @category Internal
*/
export declare namespace TypeGuard {
type Constructor<T> = {
new (...args: any[]): T;
};
/**
* Checks if the given object is an instance of the indicated class.
*
* @param o the object to be checked.
* @param className the name of the class to check for.
*/
const typeGuard: <T>(o: any, className: Constructor<T>) => o is T;
}
//# sourceMappingURL=type-guard.d.ts.map