delta-comic-core 0.1.2 → 0.1.3
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/dist/bundle.cjs +2 -2
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.js +104 -45
- package/dist/bundle.js.map +1 -1
- package/dist/lib/struct/content.d.ts +2 -2
- package/dist/lib/struct/download.d.ts +8 -0
- package/dist/lib/utils/data.d.ts +33 -0
- package/dist/pack.tgz +0 -0
- package/package.json +1 -1
|
@@ -49,8 +49,8 @@ export declare abstract class ContentPage<T extends object = any> {
|
|
|
49
49
|
abstract loadAll(signal?: AbortSignal): Promise<any>;
|
|
50
50
|
abstract reloadAll(signal?: AbortSignal): Promise<any>;
|
|
51
51
|
abstract plugin: string;
|
|
52
|
-
abstract loadAllOffline(): Promise<
|
|
53
|
-
abstract exportOffline(
|
|
52
|
+
abstract loadAllOffline(save: T): Promise<any>;
|
|
53
|
+
abstract exportOffline(): Promise<T>;
|
|
54
54
|
abstract ViewComp: ViewComp;
|
|
55
55
|
}
|
|
56
56
|
export type ViewComp = Component<{
|
package/dist/lib/utils/data.d.ts
CHANGED
|
@@ -1,10 +1,43 @@
|
|
|
1
1
|
import { Raw, Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 可以结构化的数据
|
|
4
|
+
*/
|
|
2
5
|
export declare class Struct<TRaw extends object> {
|
|
3
6
|
protected $$raw: TRaw;
|
|
4
7
|
toJSON(): TRaw;
|
|
5
8
|
constructor($$raw: TRaw);
|
|
6
9
|
}
|
|
7
10
|
export type MetaData = Record<string | number, any>;
|
|
11
|
+
/**
|
|
12
|
+
* 比如有很多需要注明来自哪个插件的值都可以用
|
|
13
|
+
*/
|
|
14
|
+
export declare class SourcedValue<T extends [string, string]> {
|
|
15
|
+
separator: string;
|
|
16
|
+
toJSON(value: T | string): T;
|
|
17
|
+
parse(value: string): T;
|
|
18
|
+
toString(value: T | string): string;
|
|
19
|
+
stringify(value: T): string;
|
|
20
|
+
constructor(separator?: string);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 相比较于普通的Map,这个元素的key操作可以是`TKey | string`
|
|
24
|
+
* _但内部保存仍使用`SourcedValue.toString`作为key_
|
|
25
|
+
*/
|
|
26
|
+
export declare class SourcedKeyMap<TKey extends [string, string], TValue> extends SourcedValue<TKey> implements Map<string, TValue> {
|
|
27
|
+
private store;
|
|
28
|
+
get size(): number;
|
|
29
|
+
[Symbol.toStringTag]: string;
|
|
30
|
+
clear(): void;
|
|
31
|
+
delete(key: string | TKey): boolean;
|
|
32
|
+
forEach(callbackfn: (value: TValue, key: string, map: Map<string, TValue>) => void, thisArg?: any): void;
|
|
33
|
+
get(key: string | TKey): TValue | undefined;
|
|
34
|
+
has(key: string | TKey): boolean;
|
|
35
|
+
set(key: string | TKey, value: TValue): this;
|
|
36
|
+
entries(): MapIterator<[string, TValue]>;
|
|
37
|
+
keys(): MapIterator<string>;
|
|
38
|
+
values(): MapIterator<TValue>;
|
|
39
|
+
[Symbol.iterator](): MapIterator<[string, TValue]>;
|
|
40
|
+
}
|
|
8
41
|
type PromiseContentEmits<TR> = {
|
|
9
42
|
success: TR;
|
|
10
43
|
error: any;
|
package/dist/pack.tgz
CHANGED
|
Binary file
|