clientnode 3.0.849 → 3.0.850

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.
Files changed (3) hide show
  1. package/index.d.ts +2 -3
  2. package/package.json +1 -1
  3. package/type.d.ts +8 -8
package/index.d.ts CHANGED
@@ -15,7 +15,6 @@ export declare const determine$: (() => $TStatic);
15
15
  export declare let $: $TStatic;
16
16
  /**
17
17
  * Represents the lock state.
18
- *
19
18
  * @property locks - Mapping of lock descriptions to there corresponding
20
19
  * callbacks.
21
20
  */
@@ -428,7 +427,7 @@ export declare class Tools<TElement = HTMLElement> {
428
427
  *
429
428
  * @returns Returns true if both dom representations are equivalent.
430
429
  */
431
- static isEquivalentDOM(this: void, first: Node | string | $T<Node>, second: Node | string | $T<Node>, forceHTMLString?: boolean): boolean;
430
+ static isEquivalentDOM(this: void, first: Node | string | $T<HTMLElement> | $T<Node>, second: Node | string | $T<HTMLElement> | $T<Node>, forceHTMLString?: boolean): boolean;
432
431
  /**
433
432
  * Determines where current dom node is relative to current view port
434
433
  * position.
@@ -1738,7 +1737,7 @@ export declare class Tools<TElement = HTMLElement> {
1738
1737
  /**
1739
1738
  * Dom bound version of Tools class.
1740
1739
  */
1741
- export declare class BoundTools<TElement extends HTMLElement = HTMLElement> extends Tools<TElement> {
1740
+ export declare class BoundTools<TElement = HTMLElement> extends Tools<TElement> {
1742
1741
  $domNode: $T<TElement>;
1743
1742
  readonly self: typeof BoundTools;
1744
1743
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clientnode",
3
- "version": "3.0.849",
3
+ "version": "3.0.850",
4
4
  "description": "upgrade to object orientated rock solid plugins",
5
5
  "keywords": [
6
6
  "client",
package/type.d.ts CHANGED
@@ -180,14 +180,14 @@ export interface $Global extends Window {
180
180
  }
181
181
  export interface ToolsFunction<TElement = HTMLElement> {
182
182
  class: typeof Tools;
183
- (this: $T<TElement>, ..._parameters: Array<unknown>): Tools;
183
+ (..._parameters: Array<unknown>): Tools<TElement>;
184
184
  }
185
- export interface BoundToolsFunction<TElement extends HTMLElement = HTMLElement> {
186
- class: typeof BoundTools;
187
- (this: $T<TElement>, methodName: 'normalizedClassNames'): BoundTools<TElement>;
188
- (this: $T<TElement>, methodName: 'normalizedStyles'): BoundTools<TElement>;
189
- (this: $T<TElement>, methodName: 'style'): Mapping<number | string>;
190
- (this: $T<TElement>, ..._parameters: Array<unknown>): BoundTools<TElement>;
185
+ export interface BoundToolsFunction<TElement = HTMLElement> {
186
+ (_methodName: 'normalizedClassNames'): BoundTools<TElement>;
187
+ (_methodName: 'normalizedStyles'): BoundTools<TElement>;
188
+ (_methodName: 'removeDirective', _directiveName: string): $T<TElement>;
189
+ (_methodName: 'style'): Mapping<number | string>;
190
+ (..._parameters: Array<unknown>): BoundTools<TElement>;
191
191
  }
192
192
  export interface StaticScope {
193
193
  document?: Document;
@@ -197,7 +197,7 @@ export interface StaticScope {
197
197
  }
198
198
  declare global {
199
199
  interface JQuery<TElement = HTMLElement> {
200
- Tools: ToolsFunction<TElement>;
200
+ Tools: BoundToolsFunction<TElement>;
201
201
  }
202
202
  interface JQueryStatic {
203
203
  document?: Document;