docs: currentSide & exports

This commit is contained in:
rhunk
2023-12-25 02:12:25 +01:00
committed by GitHub
parent 71a6ab33ad
commit f682659aba

22
index.d.ts vendored
View File

@@ -155,19 +155,23 @@ declare module "ipc" {
function broadcast(channel: string, eventName: string, ...args: any[]): void; function broadcast(channel: string, eventName: string, ...args: any[]): void;
} }
declare const currentSide: "core" | "manager";
declare namespace module { declare namespace module {
interface ModuleInfo { interface ModuleInfo {
name: string; readonly name: string;
version: string; readonly displayName: string;
description: string | undefined; readonly version: string;
author: string | undefined; readonly description: string | undefined;
minSnapchatVersion: number | undefined; readonly author: string | undefined;
minSEVersion: number | undefined; readonly minSnapchatVersion: number | undefined;
grantedPermissions: string[]; readonly minSEVersion: number | undefined;
readonly grantedPermissions: string[];
} }
let info: ModuleInfo; let exports: any | undefined;
const info: ModuleInfo;
// SnapEnhance side // SnapEnhance side
let onSnapEnhanceLoad: ((context: any) => void) | undefined; let onSnapEnhanceLoad: ((context: any) => void) | undefined;