Skip to content
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

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

Dalantren
Copy link
Contributor

No description provided.

column: ColumnModel;
getValue: (row: any) => any;
reference: { commit: Command; cancel: Command; value: any };
createDefaultModel?: () => Model;
Copy link
Contributor Author

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

@@ -1,6 +1,6 @@
export declare interface Validator {
validate(value: any): boolean;
getErrors(): Array<string>;
Copy link
Contributor Author

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> =
Copy link
Contributor Author

@Dalantren Dalantren May 26, 2022

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 {
Copy link
Collaborator

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[] = [];
Copy link
Collaborator

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;
Copy link
Collaborator

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;
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants