import * as check from "../../../../generated/sync/check/dictionary-of/null-or-undefined"; import {AssertError} from "../../../../sync/error/AssertError"; export function assertDictionaryOfNullOrUndefined (name : string, mixed : any) : ({ [key : string] : null|undefined })|never { const error = check.checkDictionaryOfNullOrUndefined(mixed); if (error === undefined) { return mixed; } else { throw new AssertError(name, error, mixed); } }