UNPKG

native-fn

Version:
28 lines (23 loc) 775 B
declare interface NativePlugin<Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>> { installed: boolean; name: Key; module: Module; Constants: Constants; Errors: Errors; } declare interface ClipboardInstance { copy(item: any): Promise<boolean>; paste(): Promise<string>; } declare module 'native-fn' { interface NativePlugins { Clipboard: ClipboardInstance; } interface NativeConstants { } interface NativeErrors { } } declare const NativeClipboardPlugin: NativePlugin<'Clipboard', ClipboardInstance, {}, {}>; export { NativeClipboardPlugin as default }; export type { ClipboardInstance };