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