import type { ResultOrError } from '@budarin/json-rpc-interface'; export type LikeType = { [K in keyof T]: any; }; export type Validator = (...args: any[]) => boolean; export type ValidateEntity = (data: any) => ResultOrError; export type EntityGetter = (obj: any) => LikeType; export type FieldsValidators = { [key: string]: { validators: [Validator, string][]; required?: boolean; }; }; export type LikePartial = Partial; export type LikeExtended = T & Partial>; export type Like = T | (T & Partial>) | Partial; export type AnyObject = Record;