From 6bba6113a73e78110c8b889f1de2223cfbce5bc5 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 2 Feb 2023 12:22:50 +0300 Subject: [PATCH] fix build --- apps/web/stores/validation/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/stores/validation/index.ts b/apps/web/stores/validation/index.ts index 6109c9a..50ad573 100644 --- a/apps/web/stores/validation/index.ts +++ b/apps/web/stores/validation/index.ts @@ -1,6 +1,6 @@ import { makeAutoObservable } from 'mobx'; import notification from 'ui/elements/notification'; -import type { ValidationConfig, ValidationParams } from './types'; +import type { ValidationConfig } from './types'; export default class Validation { params: ValidationConfig; @@ -25,7 +25,7 @@ export default class Validation { if (this.messages.size === 0) notification.close(this.params.err_key); }; - addError = (message: string, silent: ValidationParams['silent']) => { + addError = (message: string, silent?: boolean) => { this.messages.add(message); if (!silent) {