ddan-js 2.4.10 → 2.5.0
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/bin/types/index.d.ts
CHANGED
|
@@ -294,7 +294,7 @@ declare const dMini: {
|
|
|
294
294
|
textAlign?: "center" | "end" | "left" | "right" | "start" | undefined;
|
|
295
295
|
textBaseline?: "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top" | undefined;
|
|
296
296
|
}) => string;
|
|
297
|
-
copyText: (text: string, legacy?: boolean) => Promise<
|
|
297
|
+
copyText: (text: string, legacy?: boolean) => Promise<boolean>;
|
|
298
298
|
queryPermission: (name: string, def?: PermissionState) => Promise<PermissionState>;
|
|
299
299
|
isAllowed: (status: PermissionState | undefined, prompt?: boolean) => boolean;
|
|
300
300
|
};
|
|
@@ -426,7 +426,7 @@ declare const dWeb: {
|
|
|
426
426
|
textAlign?: "center" | "end" | "left" | "right" | "start" | undefined;
|
|
427
427
|
textBaseline?: "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top" | undefined;
|
|
428
428
|
}) => string;
|
|
429
|
-
copyText: (text: string, legacy?: boolean) => Promise<
|
|
429
|
+
copyText: (text: string, legacy?: boolean) => Promise<boolean>;
|
|
430
430
|
queryPermission: (name: string, def?: PermissionState) => Promise<PermissionState>;
|
|
431
431
|
isAllowed: (status: PermissionState | undefined, prompt?: boolean) => boolean;
|
|
432
432
|
};
|
|
@@ -693,7 +693,7 @@ declare const _default: {
|
|
|
693
693
|
textAlign?: "center" | "end" | "left" | "right" | "start" | undefined;
|
|
694
694
|
textBaseline?: "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top" | undefined;
|
|
695
695
|
}) => string;
|
|
696
|
-
copyText: (text: string, legacy?: boolean) => Promise<
|
|
696
|
+
copyText: (text: string, legacy?: boolean) => Promise<boolean>;
|
|
697
697
|
queryPermission: (name: string, def?: PermissionState) => Promise<PermissionState>;
|
|
698
698
|
isAllowed: (status: PermissionState | undefined, prompt?: boolean) => boolean;
|
|
699
699
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const copyText: (text: string, legacy?: boolean) => Promise<
|
|
1
|
+
export declare const copyText: (text: string, legacy?: boolean) => Promise<boolean>;
|
|
2
2
|
export declare const legacyCopy: (text: string) => boolean;
|
|
3
3
|
export declare const queryPermission: (name: string, def?: PermissionState) => Promise<PermissionState>;
|
|
4
4
|
export declare const isAllowed: (status: PermissionState | undefined, prompt?: boolean) => boolean;
|
|
@@ -20,7 +20,7 @@ declare const _default: {
|
|
|
20
20
|
textAlign?: "center" | "end" | "left" | "right" | "start" | undefined;
|
|
21
21
|
textBaseline?: "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top" | undefined;
|
|
22
22
|
}) => string;
|
|
23
|
-
copyText: (text: string, legacy?: boolean) => Promise<
|
|
23
|
+
copyText: (text: string, legacy?: boolean) => Promise<boolean>;
|
|
24
24
|
queryPermission: (name: string, def?: PermissionState) => Promise<PermissionState>;
|
|
25
25
|
isAllowed: (status: PermissionState | undefined, prompt?: boolean) => boolean;
|
|
26
26
|
};
|