next-box 1.3.18 → 1.3.19

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.
package/helpers.d.ts CHANGED
@@ -1,14 +1,8 @@
1
- import { TransportEventPayload, AppEvents, AppState, Lang } from './interfaces';
1
+ import { TransportEventPayload, AppEvents, AppState, Lang, FileInfo } from './interfaces';
2
2
  export declare function getLang(lang: Lang, locale?: string): string;
3
3
  export declare function sendEvent(event: AppEvents, payload?: TransportEventPayload): void;
4
4
  export declare function devState(state: Partial<AppState>): AppState;
5
5
  export declare function translite(value: string): string;
6
6
  export declare function pathJoin(...args: string[]): string;
7
- export declare function fileInfo(path: string): {
8
- base: string;
9
- dir: string;
10
- ext: string;
11
- name: string;
12
- root: string;
13
- };
7
+ export declare function fileInfo(path: string): FileInfo;
14
8
  export declare function dirname(path: string): string;
package/interfaces.d.ts CHANGED
@@ -80,3 +80,10 @@ export interface StorageElement {
80
80
  update_date: string;
81
81
  with_preview: boolean;
82
82
  }
83
+ export interface FileInfo {
84
+ base: string;
85
+ dir: string;
86
+ ext: string;
87
+ name: string;
88
+ root: string;
89
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-box",
3
- "version": "1.3.18",
3
+ "version": "1.3.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",