mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
TS fixes
This commit is contained in:
@@ -93,7 +93,7 @@ type User = import('models/user').default;
|
||||
/**
|
||||
* A model.
|
||||
*/
|
||||
export default class Model<T extends Record<string, unknown> = Record<string, any>> {
|
||||
export default class Model<T extends Record<string, any> = Record<string, any>> {
|
||||
|
||||
/**
|
||||
* A root URL. An ID will be appended. Used for syncing with backend.
|
||||
|
||||
@@ -119,7 +119,7 @@ export default class BaseFieldView<
|
||||
/**
|
||||
* @param options Options.
|
||||
*/
|
||||
constructor(options: {[s: string]: unknown} & O & {params: P}) {
|
||||
constructor(options: {[s: string]: unknown} & O & {params?: P}) {
|
||||
super(options);
|
||||
|
||||
this.name = options.name;
|
||||
|
||||
Reference in New Issue
Block a user