import { MakeSchema } from '~/domain'; import { IThemisMethods } from '~/domain/themis/themis-methods'; import { ThemisSchemaAdapter } from '~/presentation/use-cases'; export const makeThemisSchema = (makeObjectSchema: MakeSchema<'object'>): IThemisMethods.Schema => { return new ThemisSchemaAdapter(makeObjectSchema); }; export const makeThemisMethods = (makeObjectSchema: MakeSchema<'object'>): IThemisMethods => { const schema = makeThemisSchema(makeObjectSchema); return { ...schema, }; };