@todesktop/client-util
Advanced tools
Comparing version 1.0.0-alpha21 to 1.0.0-alpha22
@@ -1,2 +0,3 @@ | ||
import { checkIfCompatibleWithBackend, createIsNotCompatibleHelper, } from "./checkIfCompatibleWithBackend"; | ||
/* eslint-env jest */ | ||
import { checkIfCompatibleWithBackend, createIsNotCompatibleHelper, } from "./checkIfCompatibleWithBackend.js"; | ||
const mockedConsole = jest.spyOn(console, "warn").mockImplementation(); | ||
@@ -3,0 +4,0 @@ beforeEach(() => { |
@@ -1,2 +0,3 @@ | ||
import { checkIfCompatibleWithPlugin } from "./checkIfCompatibleWithPlugin"; | ||
/* eslint-env jest */ | ||
import { checkIfCompatibleWithPlugin } from "./checkIfCompatibleWithPlugin.js"; | ||
const mockedConsole = jest.spyOn(console, "warn").mockImplementation(); | ||
@@ -3,0 +4,0 @@ beforeEach(() => { |
@@ -20,4 +20,8 @@ /** | ||
}>(eventMappings: E) => (event: "*" | keyof E, callback: (...any: any[]) => void) => void; | ||
export declare type MethodFunc = (...args: any[]) => unknown; | ||
export declare type ConstructorFunc = new (...args: any) => any; | ||
export type MethodFunc = (...args: any[]) => unknown; | ||
export type ConstructorFunc = new (...args: unknown[]) => unknown; | ||
/** | ||
* TODO: At some point we may went to add out whitelist to the type system. | ||
* For now, the whitelist is only defined in desktopify. | ||
*/ | ||
export interface NamespacesInstancesV1 { | ||
@@ -51,7 +55,7 @@ BrowserWindow: BrowserWindow; | ||
} | ||
declare type ChangeInstancesToInstanceRefsSingle<T> = T extends NamespacesInstancesV1[keyof NamespacesInstancesV1] ? InstanceRefObject : T; | ||
declare type ChangeInstancesToInstanceRefsInParams<Obj> = { | ||
type ChangeInstancesToInstanceRefsSingle<T> = T extends NamespacesInstancesV1[keyof NamespacesInstancesV1] ? InstanceRefObject : T; | ||
type ChangeInstancesToInstanceRefsInParams<Obj> = { | ||
[K in keyof Obj]: ChangeInstancesToInstanceRefsSingle<Obj[K]>; | ||
}; | ||
declare type ChangeInstancesToInstanceRefs<T> = T extends any[] ? ChangeInstancesToInstanceRefsInParams<T> : ChangeInstancesToInstanceRefsSingle<T>; | ||
type ChangeInstancesToInstanceRefs<T> = T extends unknown[] ? ChangeInstancesToInstanceRefsInParams<T> : ChangeInstancesToInstanceRefsSingle<T>; | ||
/** | ||
@@ -105,5 +109,9 @@ * @internal | ||
/** | ||
* A refernce to the instance on which to access the property | ||
* A reference to the instance on which to access the property | ||
*/ | ||
instanceRef?: IR; | ||
/** | ||
* A value to assign to the property | ||
*/ | ||
value?: unknown; | ||
} | ||
@@ -110,0 +118,0 @@ /** |
{ | ||
"name": "@todesktop/client-util", | ||
"version": "1.0.0-alpha21", | ||
"version": "1.0.0-alpha22", | ||
"description": "Utility functions for ToDesktop client libraries", | ||
"main": "index.js", | ||
"type": "module", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
@@ -22,2 +23,3 @@ "lint:fix": "npm run lint:check -- --fix", | ||
"devDependencies": { | ||
"@types/jest": "^29.2.0", | ||
"agadoo": "^2.0.0", | ||
@@ -24,0 +26,0 @@ "typescript": "^4.7.2" |
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
23174
547
3