szld-libs 0.0.13 → 0.0.15

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.
@@ -15,4 +15,21 @@ export declare enum FileType {
15
15
  svg = "image/svg+xml"
16
16
  }
17
17
  declare const FileTypeMap: Map<string, FileType>;
18
- export { FileTypeMap };
18
+ declare enum FileSuffix {
19
+ zip = ".zip",
20
+ png = ".png",
21
+ jpg = ".jpg",
22
+ jpeg = ".jpeg",
23
+ pdf = ".pdf",
24
+ doc = ".doc",
25
+ docx = ".docx",
26
+ ppt = ".ppt",
27
+ pptx = ".pptx",
28
+ xls = ".xls",
29
+ xlsx = ".xlsx",
30
+ txt = ".txt",
31
+ csv = ".csv",
32
+ svg = ".svg",
33
+ rar = ".rar"
34
+ }
35
+ export { FileTypeMap, FileSuffix };
@@ -1,5 +1,6 @@
1
1
  export declare const filterObject: (object: any) => any;
2
2
  export declare const getBase64: (file: File) => Promise<string>;
3
+ export declare const getFileSuffix: (name: string | undefined) => string | undefined;
3
4
  export declare const getFileType: (name: string | undefined) => string | undefined;
4
5
  export declare const setLocalStorage: (key: string, value: any) => void;
5
6
  export declare const getLocalStorage: (key: string) => any;