piclist 1.9.4 → 1.9.6
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/CHANGELOG.md +18 -0
- package/dist/core/Lifecycle.d.ts +1 -1
- package/dist/core/PicGo.d.ts +2 -0
- package/dist/i18n/zh-CN.d.ts +0 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/plugins/uploader/utils.d.ts +0 -1
- package/dist/types/index.d.ts +12 -1
- package/package.json +1 -1
- package/dist/plugins/uploader/telegraph.d.ts +0 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -35,6 +35,10 @@ export interface IPicGo extends NodeJS.EventEmitter {
|
|
|
35
35
|
* the origin input
|
|
36
36
|
*/
|
|
37
37
|
rawInput: any[];
|
|
38
|
+
/**
|
|
39
|
+
* processed input path
|
|
40
|
+
*/
|
|
41
|
+
processedInput: any[];
|
|
38
42
|
/**
|
|
39
43
|
* register\unregister\get picgo's plugin
|
|
40
44
|
*/
|
|
@@ -97,6 +101,10 @@ export interface IPicGo extends NodeJS.EventEmitter {
|
|
|
97
101
|
* upload gogogo
|
|
98
102
|
*/
|
|
99
103
|
upload: (input?: any[]) => Promise<IImgInfo[] | Error>;
|
|
104
|
+
/**
|
|
105
|
+
* transform gogogo
|
|
106
|
+
*/
|
|
107
|
+
uploadReturnCtx: (input?: any[]) => Promise<IPicGo>;
|
|
100
108
|
}
|
|
101
109
|
/**
|
|
102
110
|
* for plugin config
|
|
@@ -239,7 +247,10 @@ export interface IPathTransformedImgInfo extends IImgInfo {
|
|
|
239
247
|
}
|
|
240
248
|
export type IStringKeyMap<T> = Record<string, T extends T ? T : any>;
|
|
241
249
|
export type ICLIConfigs = Record<string, IStringKeyMap<any>>;
|
|
242
|
-
/**
|
|
250
|
+
/**
|
|
251
|
+
* Telegraph 图床配置项
|
|
252
|
+
* @deprecated since v1.9.6
|
|
253
|
+
*/
|
|
243
254
|
export interface ITelegraphConfig {
|
|
244
255
|
proxy?: string;
|
|
245
256
|
}
|
package/package.json
CHANGED