mirror of
https://github.com/SnapEnhance/scripting-docs.git
synced 2026-08-30 20:24:23 +00:00
docs: currentSide & exports
This commit is contained in:
20
index.d.ts
vendored
20
index.d.ts
vendored
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user