Skip to content

EspoCRM – Open Source CRM Application

TS fix

Yurii168559c24eb0
diff --git a/client/src/view.ts b/client/src/view.ts
index fdbcc64080..f30c7a60e9 100644
--- a/client/src/view.ts
+++ b/client/src/view.ts
@@ -96,10 +96,7 @@ export default class View<S extends ViewSchema = ViewSchema> extends BullView<S[
* @param options Options.
*/
constructor(
- options: Record<string, any> & S['options'] & {
- model?: S['model'],
- collection?: S['collection'],
- } = {}
+ options: Record<string, any> & S['options'] = {}
) {
super(options);
diff --git a/client/src/views/fields/base.ts b/client/src/views/fields/base.ts
index 5aa39012b1..4c6546cb69 100644
--- a/client/src/views/fields/base.ts
+++ b/client/src/views/fields/base.ts
@@ -48,7 +48,7 @@ export interface BaseOptions {
/**
* A model.
*/
- model?: import('model').default;
+ model?: Model
/**
* Disabled inline edit.
*/