dothtml-interfaces 0.3.7 → 0.3.9

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/i-dot.d.ts +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dothtml-interfaces",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "Dependency injection interfaces for DOTHtml.",
5
5
  "main": "src/index.d.ts",
6
6
  "types": "src/index.d.ts",
package/src/i-dot.d.ts CHANGED
@@ -16,7 +16,7 @@ type AttrVal<T = string | number | boolean> = T | IReactive<T>;
16
16
  */
17
17
  export interface IDotDocument {
18
18
  // Creating a blank DotDocument.
19
- (document?: Element, classPrefix?: number, targetWindow?: Window & (typeof globalThis)): void;
19
+ (document?: Element, classPrefix?: number, targetWindow?: Window): void;
20
20
 
21
21
  // Internal use only:
22
22
  // Removed in v6.
@@ -394,10 +394,12 @@ export interface IDotWindowWrapper{
394
394
  window: Window;
395
395
  document: Document;
396
396
  title: string;
397
+ width: number;
398
+ height: number;
397
399
  }
398
400
 
399
401
  export interface IDotWindowBuilder {
400
- (options: {content: IDotDocument, width: number, height: number, title: string}): IDotWindowWrapper;
402
+ (options: {content: IDotDocument, width?: number, height?: number, title?: string}): IDotWindowWrapper;
401
403
  }
402
404
 
403
405
  export interface IDotConditionalDocument extends IDotDocument {