@stemy/ngx-utils 19.3.3 → 19.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- export type FileSystemEntryOpenResult<T = any> = ReadonlyArray<FileSystemEntry<T>> | null;
2
- export type FileSystemEntryOpenCb = (data: any, parent: FileSystemEntry) => Promise<FileSystemEntryOpenResult>;
3
- export declare class FileSystemEntry<T = any, R = any> {
1
+ export type FileSystemEntryOpenResult<D = any, R = any> = Promise<readonly FileSystemEntry<D, R>[]>;
2
+ export type FileSystemEntryOpenCb<PD, D = any, R = any> = (parent: FileSystemEntry<PD>) => FileSystemEntryOpenResult<D, R>;
3
+ export declare class FileSystemEntry<D = any, R = any> {
4
4
  readonly label: string;
5
5
  readonly meta: string;
6
6
  readonly image: string;
7
- readonly data: T;
8
- readonly parent: FileSystemEntry;
9
- protected openCb: FileSystemEntryOpenCb;
10
- protected result: Promise<FileSystemEntryOpenResult>;
7
+ readonly data: D;
8
+ protected openCb: FileSystemEntryOpenCb<D, R>;
9
+ protected result: FileSystemEntryOpenResult;
11
10
  readonly path: ReadonlyArray<FileSystemEntry>;
12
11
  readonly level: number;
13
12
  readonly classes: ReadonlyArray<string>;
14
- constructor(label: string, meta: string, image: string, data: T, parent: FileSystemEntry, openCb: FileSystemEntryOpenCb);
15
- open<O = R>(): Promise<FileSystemEntryOpenResult<O>>;
13
+ get parent(): FileSystemEntry;
14
+ constructor(label: string, meta: string, image: string, data: D, openCb: FileSystemEntryOpenCb<D, R>, parent?: FileSystemEntry, classes?: string[]);
15
+ open<O = any>(): FileSystemEntryOpenResult<R, O>;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.3.3",
3
+ "version": "19.3.5",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",