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