clientnode 3.0.832 → 3.0.836
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/property-types.d.ts +5 -1
- package/property-types.js +1 -1
- package/testHelper.js +1 -1
- package/type.d.ts +7 -7
package/type.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare type ValueOf<Type> = Type[keyof Type];
|
|
|
28
28
|
export declare type RecursiveNonNullable<Type> = {
|
|
29
29
|
[Property in keyof Type]: Type[Property] extends (infer OtherType)[] ? RecursiveNonNullable<OtherType>[] : Type[Property] extends Function ? NonNullable<Type[Property]> : Type[Property] extends object ? RecursiveNonNullable<Type[Property]> : NonNullable<Type[Property]>;
|
|
30
30
|
};
|
|
31
|
-
export declare type RecursivePartial<Type> = {
|
|
31
|
+
export declare type RecursivePartial<Type> = Partial<Type> | {
|
|
32
32
|
[Property in keyof Type]?: Type[Property] extends (infer OtherType)[] ? RecursivePartial<OtherType>[] : Type[Property] extends Function ? Partial<Type[Property]> : Type[Property] extends object ? RecursivePartial<Type[Property]> : Partial<Type[Property]>;
|
|
33
33
|
};
|
|
34
34
|
export declare type HTMLItem = Comment | Document | HTMLElement | Text;
|
|
@@ -37,10 +37,10 @@ export declare type PlainObject<Type = Primitive> = {
|
|
|
37
37
|
[key: string]: Array<PlainObject<Type> | Type> | PlainObject<Type> | Type;
|
|
38
38
|
};
|
|
39
39
|
export interface ProxyHandler<T = unknown> {
|
|
40
|
-
deleteProperty: (target: T, key:
|
|
41
|
-
get: (target: T, key: string) => unknown;
|
|
42
|
-
has: (target: T, key: string) => boolean;
|
|
43
|
-
set: (target: T, key: string, value: unknown) => boolean;
|
|
40
|
+
deleteProperty: (target: T, key: string | symbol) => boolean;
|
|
41
|
+
get: (target: T, key: string | symbol) => unknown;
|
|
42
|
+
has: (target: T, key: string | symbol) => boolean;
|
|
43
|
+
set: (target: T, key: string | symbol, value: unknown) => boolean;
|
|
44
44
|
}
|
|
45
45
|
export declare type ProxyType<T = unknown> = T & {
|
|
46
46
|
__revoke__?: AnyFunction;
|
|
@@ -50,8 +50,8 @@ export declare type GenericFunction = (...parameter: Array<unknown>) => unknown;
|
|
|
50
50
|
export declare type SynchronousProcedureFunction = (...parameter: Array<unknown>) => void;
|
|
51
51
|
export declare type AsynchronousProcedureFunction = (...parameter: Array<unknown>) => Promise<void>;
|
|
52
52
|
export declare type ProcedureFunction = AsynchronousProcedureFunction | SynchronousProcedureFunction;
|
|
53
|
-
export declare type GetterFunction = (keyOrValue:
|
|
54
|
-
export declare type SetterFunction = (key:
|
|
53
|
+
export declare type GetterFunction = (keyOrValue: unknown, key: string | symbol, target: unknown) => unknown;
|
|
54
|
+
export declare type SetterFunction = (key: string | Symbol, value: unknown, target: unknown) => unknown;
|
|
55
55
|
export interface CheckReachabilityOptions {
|
|
56
56
|
expectedIntermediateStatusCodes: Array<number> | number;
|
|
57
57
|
options: RequestInit;
|