@todesktop/client-util
Advanced tools
Comparing version 1.0.0-alpha23 to 1.0.0-alpha24
/** | ||
* Barebones EventEmitter implementation for API namespaces. | ||
*/ | ||
import type { BrowserWindow, WebContents, Tray, NativeImage, nativeImage, NativeTheme, Menu, MenuItem, BrowserView, Notification } from "@todesktop/client-electron-types"; | ||
import type { BrowserWindow, WebContents, Tray, NativeImage, nativeImage, NativeTheme, Menu, MenuItem, BrowserView, Notification, App } from "@todesktop/client-electron-types"; | ||
import type { AppUpdater } from "@todesktop/client-electron-updater-types"; | ||
@@ -20,4 +20,4 @@ /** | ||
}>(eventMappings: E) => (event: "*" | keyof E, callback: (...any: any[]) => void) => void; | ||
export type MethodFunc = (...args: any[]) => unknown; | ||
export type ConstructorFunc = new (...args: unknown[]) => unknown; | ||
export declare type MethodFunc = (...args: any[]) => unknown; | ||
export declare type ConstructorFunc = new (...args: unknown[]) => unknown; | ||
/** | ||
@@ -38,2 +38,3 @@ * TODO: At some point we may went to add out whitelist to the type system. | ||
process: NodeJS.Process; | ||
app: App; | ||
} | ||
@@ -56,7 +57,7 @@ export interface NamespacesStaticV1 { | ||
} | ||
export type ChangeInstancesToInstanceRefsSingle<T> = T extends NamespacesInstancesV1[keyof NamespacesInstancesV1] ? InstanceRefObject : T; | ||
export type ChangeInstancesToInstanceRefsInParams<Obj> = { | ||
export declare type ChangeInstancesToInstanceRefsSingle<T> = T extends NamespacesInstancesV1[keyof NamespacesInstancesV1] ? InstanceRefObject : T; | ||
export declare type ChangeInstancesToInstanceRefsInParams<Obj> = { | ||
[K in keyof Obj]: ChangeInstancesToInstanceRefsSingle<Obj[K]>; | ||
}; | ||
export type ChangeInstancesToInstanceRefs<T> = T extends unknown[] ? ChangeInstancesToInstanceRefsInParams<T> : ChangeInstancesToInstanceRefsSingle<T>; | ||
export declare type ChangeInstancesToInstanceRefs<T> = T extends unknown[] ? ChangeInstancesToInstanceRefsInParams<T> : ChangeInstancesToInstanceRefsSingle<T>; | ||
/** | ||
@@ -63,0 +64,0 @@ * @internal |
{ | ||
"name": "@todesktop/client-util", | ||
"version": "1.0.0-alpha23", | ||
"version": "1.0.0-alpha24", | ||
"description": "Utility functions for ToDesktop client libraries", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
23254
548