import * as check from "../../../sync/check/object"; import {AssertError} from "../../../sync/error/AssertError"; export function assertObject (name : string, mixed : any) : (Object)|never { const error = check.checkObject(mixed); if (error === undefined) { return mixed; } else { throw new AssertError(name, error, mixed); } }