@todesktop/client-active-win
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -1,2 +0,2 @@ | ||
import { GetActiveWindow } from "./generated/plugin"; | ||
export declare const getActiveWin: GetActiveWindow; | ||
import { GetActiveWin } from "./generated/plugin"; | ||
export declare const getActiveWin: GetActiveWin; |
@@ -10,2 +10,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
export const getActiveWin = (options) => __awaiter(void 0, void 0, void 0, function* () { return yield window.td.getActiveWindow(options); }); | ||
export const getActiveWin = (options) => __awaiter(void 0, void 0, void 0, function* () { return yield window.td.getActiveWin(options); }); |
{ | ||
"name": "@todesktop/client-active-win", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -91,12 +91,10 @@ interface Options { | ||
declare type ActiveWinResult = Result; | ||
declare type ActiveWinOptions = Options; | ||
declare enum WindowActions { | ||
getActiveWindow = "getActiveWindow" | ||
getActiveWin = "getActiveWin" | ||
} | ||
declare type GetActiveWindow = (options: ActiveWinOptions) => Promise<ActiveWinResult | undefined>; | ||
declare type GetActiveWin = (options: Options) => Promise<Result | undefined>; | ||
declare global { | ||
interface Window { | ||
td: { | ||
getActiveWindow: GetActiveWindow; | ||
getActiveWin: GetActiveWin; | ||
}; | ||
@@ -106,2 +104,8 @@ } | ||
export { ActiveWinOptions, ActiveWinResult, GetActiveWindow, WindowActions }; | ||
declare const getActiveWin: GetActiveWin; | ||
declare const config: { | ||
namespace: string; | ||
version: number; | ||
}; | ||
export { GetActiveWin, WindowActions, config, getActiveWin }; |
@@ -1,4 +0,4 @@ | ||
import { GetActiveWindow } from "./generated/plugin"; | ||
import { GetActiveWin } from "./generated/plugin"; | ||
export const getActiveWin: GetActiveWindow = async (options) => | ||
await window.td.getActiveWindow(options); | ||
export const getActiveWin: GetActiveWin = async (options) => | ||
await window.td.getActiveWin(options); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112
3965