proteum 2.2.7 → 2.2.8

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.
@@ -68,6 +68,76 @@ declare module 'morgan' {
68
68
  export default morgan;
69
69
  }
70
70
 
71
+ declare module 'object-hash' {
72
+ export type ObjectHashOptions = {
73
+ unorderedArrays?: boolean;
74
+ unorderedObjects?: boolean;
75
+ };
76
+ export type ObjectHashValue =
77
+ | string
78
+ | number
79
+ | boolean
80
+ | null
81
+ | undefined
82
+ | Date
83
+ | ObjectHashValue[]
84
+ | { [key: string]: ObjectHashValue };
85
+
86
+ const objectHash: (value: ObjectHashValue, options?: ObjectHashOptions) => string;
87
+ export default objectHash;
88
+ }
89
+
90
+ declare module 'fs-extra' {
91
+ type FsJsonValue =
92
+ | string
93
+ | number
94
+ | boolean
95
+ | null
96
+ | FsJsonValue[]
97
+ | { [key: string]: FsJsonValue };
98
+ type FsExtraModule = {
99
+ createReadStream: typeof import('fs').createReadStream;
100
+ ensureDirSync(path: import('fs').PathLike): void;
101
+ existsSync: typeof import('fs').existsSync;
102
+ moveSync(source: import('fs').PathLike, destination: import('fs').PathLike, options?: { overwrite?: boolean }): void;
103
+ outputFileSync(
104
+ file: import('fs').PathOrFileDescriptor,
105
+ data: string | NodeJS.ArrayBufferView,
106
+ options?: import('fs').WriteFileOptions | { encoding?: string },
107
+ ): void;
108
+ readdir: typeof import('fs/promises').readdir;
109
+ readdirSync: typeof import('fs').readdirSync;
110
+ readFile: typeof import('fs/promises').readFile;
111
+ readFileSync: typeof import('fs').readFileSync;
112
+ readJSONSync<TValue = FsJsonValue>(path: import('fs').PathLike): TValue;
113
+ readJsonSync<TValue = FsJsonValue>(path: import('fs').PathLike): TValue;
114
+ removeSync(path: import('fs').PathLike): void;
115
+ statSync: typeof import('fs').statSync;
116
+ writeJSONSync(path: import('fs').PathLike, data: FsJsonValue | object, options?: Record<string, unknown>): void;
117
+ };
118
+
119
+ const fsExtra: FsExtraModule;
120
+ export default fsExtra;
121
+ export const createReadStream: FsExtraModule['createReadStream'];
122
+ export const ensureDirSync: FsExtraModule['ensureDirSync'];
123
+ export const existsSync: FsExtraModule['existsSync'];
124
+ export const moveSync: FsExtraModule['moveSync'];
125
+ export const outputFileSync: FsExtraModule['outputFileSync'];
126
+ export const readdir: typeof import('fs/promises').readdir;
127
+ export const readdirSync: FsExtraModule['readdirSync'];
128
+ export const readFile: typeof import('fs/promises').readFile;
129
+ export const readFileSync: FsExtraModule['readFileSync'];
130
+ export const readJSONSync: FsExtraModule['readJSONSync'];
131
+ export const readJsonSync: FsExtraModule['readJsonSync'];
132
+ export const removeSync: FsExtraModule['removeSync'];
133
+ export const statSync: FsExtraModule['statSync'];
134
+ export const writeJSONSync: FsExtraModule['writeJSONSync'];
135
+ }
136
+
137
+ declare module 'jstoxml' {
138
+ export const toXML: (value: Record<string, unknown>, options?: Record<string, unknown>) => string;
139
+ }
140
+
71
141
  declare module 'stopword' {
72
142
  export const eng: string[];
73
143
  export function removeStopwords(words: string[], stopwords?: string[]): string[];