UNPKG

native-fn

Version:
28 lines (23 loc) 753 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 ThemeInstance { get value(): string | undefined; set value(color: string | undefined); } declare module 'native-fn' { interface NativePlugins { Theme: ThemeInstance; } interface NativeConstants { } interface NativeErrors { } } declare const NativeThemePlugin: NativePlugin<'Theme', ThemeInstance, {}, {}>; export { NativeThemePlugin as default }; export type { ThemeInstance };