[TS] Type clipboard common module (#15)
* [TS] Type clipboard common module * [TS] Add a _ to Clipboard for style
This commit is contained in:
parent
1891a46eb9
commit
2f856b3a72
4 changed files with 18 additions and 2 deletions
3
src/def.d.ts
vendored
3
src/def.d.ts
vendored
|
@ -1,6 +1,7 @@
|
|||
import * as _spitroast from "spitroast";
|
||||
import _React from "react";
|
||||
import _RN from "react-native";
|
||||
import _Clipboard from "@react-native-clipboard/clipboard";
|
||||
|
||||
type MetroModules = { [id: number]: any };
|
||||
|
||||
|
@ -217,7 +218,7 @@ interface VendettaObject {
|
|||
url: PropIntellisense<"openURL">;
|
||||
toasts: PropIntellisense<"open" | "close">;
|
||||
stylesheet: PropIntellisense<"createThemedStyleSheet">;
|
||||
clipboard: PropIntellisense<"setString" | "getString" | "hasString">;
|
||||
clipboard: typeof _Clipboard;
|
||||
assets: PropIntellisense<"registerAsset">;
|
||||
invites: PropIntellisense<"acceptInviteAndTransitionToInviteChannel">;
|
||||
commands: PropIntellisense<"getBuiltInCommands">;
|
||||
|
|
|
@ -7,7 +7,7 @@ export const i18n = findByProps("Messages");
|
|||
export const url = findByProps("openURL");
|
||||
export const toasts = find(m => m.open && m.close && !m.startDrag && !m.init && !m.openReplay && !m.setAlwaysOnTop);
|
||||
export const stylesheet = findByProps("createThemedStyleSheet");
|
||||
export const clipboard = findByProps("setString", "getString", "hasString");
|
||||
export const clipboard = findByProps("setString", "getString", "hasString") as typeof import("@react-native-clipboard/clipboard").default;
|
||||
export const assets = findByProps("registerAsset");
|
||||
export const invites = findByProps("acceptInviteAndTransitionToInviteChannel");
|
||||
export const commands = findByProps("getBuiltInCommands");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue