[TS] Don't import Events

This commit is contained in:
redstonekasi 2023-01-30 15:15:44 +01:00 committed by Beef
parent b8e0e69fcb
commit 473205a1ca

3
src/def.d.ts vendored
View file

@ -1,7 +1,6 @@
import * as _spitroast from "spitroast"; import * as _spitroast from "spitroast";
import _React from "react"; import _React from "react";
import _RN from "react-native"; import _RN from "react-native";
import { Events } from "@lib/emitter";
type MetroModules = { [id: number]: any }; type MetroModules = { [id: number]: any };
@ -178,7 +177,7 @@ interface MMKVManager {
type Indexable<Type> = { [index: string]: Type } type Indexable<Type> = { [index: string]: Type }
type EmitterEvent = (keyof typeof Events) & string; type EmitterEvent = "SET" | "GET" | "DEL";
interface EmitterListenerData { interface EmitterListenerData {
path: string[]; path: string[];