-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/angular strict/qgrid ngx plugins #616
base: master
Are you sure you want to change the base?
Feature/angular strict/qgrid ngx plugins #616
Conversation
Merge master into forked repo
column: ColumnModel; | ||
getValue: (row: any) => any; | ||
reference: { commit: Command; cancel: Command; value: any }; | ||
createDefaultModel?: () => Model; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added this property.
Rest file didn't changed
…e/angular-strict/qgrid-ngx-plugins
…angular-strict/qgrid-ngx-plugins-2
…e/angular-strict/qgrid-ngx-plugins
@@ -1,6 +1,6 @@ | |||
export declare interface Validator { | |||
validate(value: any): boolean; | |||
getErrors(): Array<string>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@klumba12 check here, please. I updated this type because Validator is using LIVR and this return type described in livr.d.ts.
@@ -1,41 +1,41 @@ | |||
import { isArray, isFunction, isObject } from '@qgrid/core'; | |||
|
|||
export function evaluateFactory(expression, args) { | |||
return visit; | |||
export type Evaluated<T> = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just for example:
interface A {
b: number;
c: string[];
d: () => string;
e: Array<() => boolean>
f: {
a: string;
b: () => number
}
}
...
Evaluated<A> is {
b number;
c: string[];
d: string;
e: Array<boolean>;
f: {
a: string;
b: number;
}
}
@@ -1,12 +1,14 @@ | |||
import { Model } from '../model/model'; | |||
|
|||
export interface RestSerialized { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about naming
@@ -13,15 +13,15 @@ export class AutoCompleteEditorComponent { | |||
return this.plugin.view.edit.cell; | |||
} | |||
|
|||
options: any[] = []; | |||
options: unknown[] = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure
@@ -8,18 +8,20 @@ import { | |||
} from '@angular/core'; | |||
import { BoolColumnModel } from '@qgrid/core'; | |||
|
|||
type ValueType = unknown; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets be consistent
@@ -17,11 +17,11 @@ import { GridModel, GridPlugin } from '@qgrid/ngx'; | |||
changeDetection: ChangeDetectionStrategy.OnPush, | |||
}) | |||
export class DataProviderComponent implements OnInit { | |||
private next: (rows: any[]) => void; | |||
private next: (rows: unknown[]) => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets use the same DataRow?
No description provided.