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