ag-charts-community
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
15 lines (14 loc) • 729 B
TypeScript
export declare class BaseProperties<T extends object = object> {
handleUnknownProperties(_unknownKeys: Set<string>, _properties: T): void;
set(properties: T): this;
isValid<TContext = Omit<T, 'type'>>(this: TContext, warningPrefix?: string): boolean;
toJson<J>(this: J): T;
}
export declare class PropertiesArray<T extends BaseProperties> extends Array<T> {
private readonly itemFactory;
constructor(itemFactory: (new () => T) | ((params: any) => T), ...properties: object[]);
set(properties: object[]): this;
reset(properties: object[]): PropertiesArray<T> | undefined;
toJson(): object[];
}
export declare function isProperties<T extends object>(value: unknown): value is BaseProperties<T>;