From 473205a1ca29c2221ab691574d9d5d4e63a0ee1b Mon Sep 17 00:00:00 2001 From: redstonekasi Date: Mon, 30 Jan 2023 15:15:44 +0100 Subject: [PATCH] [TS] Don't import Events --- src/def.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/def.d.ts b/src/def.d.ts index f049537..a0a65e2 100644 --- a/src/def.d.ts +++ b/src/def.d.ts @@ -1,7 +1,6 @@ import * as _spitroast from "spitroast"; import _React from "react"; import _RN from "react-native"; -import { Events } from "@lib/emitter"; type MetroModules = { [id: number]: any }; @@ -178,7 +177,7 @@ interface MMKVManager { type Indexable = { [index: string]: Type } -type EmitterEvent = (keyof typeof Events) & string; +type EmitterEvent = "SET" | "GET" | "DEL"; interface EmitterListenerData { path: string[];