Sv443 преди 6 месеца
родител
ревизия
101974dd57
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/interface.ts

+ 2 - 2
src/interface.ts

@@ -188,8 +188,8 @@ export function initInterface() {
 
 /** Sets a global property on the unsafeWindow.BYTM object - ⚠️ use with caution as these props can be accessed by any script on the page! */
 export function setGlobalProp<
-  TKey extends keyof Window["BYTM"],
-  TValue = Window["BYTM"][TKey],
+  TKey extends keyof BytmObject,
+  TValue = BytmObject[TKey],
 >(
   key: TKey | (string & {}),
   value: TValue,