import { MetaContext } from '../MetaContext'; import { $name as _function } from '../types/builtins/_function'; export const withRegisterFunction = MetaContext>(MetaContextBase: TMetaContextBase) => class extends MetaContextBase { registerFunction(props: any) { return this.register({ ...this.resolveName(_function), ...props }); } };