Skip to content

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.


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

}

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

} 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

})
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