tw5-typed 0.4.0 → 0.4.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "description": "Types for tiddlywiki",
3
3
  "license": "MIT",
4
4
  "name": "tw5-typed",
5
- "version": "0.4.0",
5
+ "version": "0.4.1",
6
6
  "url": "https://github.com/tiddly-gittly/tw5-typed",
7
7
  "homepage": "https://github.com/tiddly-gittly/tw5-typed",
8
8
  "bugs": {
@@ -2,6 +2,16 @@
2
2
  /// <reference path="utils.d.ts" />
3
3
  /// <reference path="fakedom.d.ts" />
4
4
  /// <reference path="filesystem.d.ts" />
5
+ /// <reference path="linked-list.d.ts" />
6
+ /// <reference path="performance.d.ts" />
7
+ /// <reference path="logger.d.ts" />
8
+ /// <reference path="parsetree.d.ts" />
9
+ /// <reference path="pluginmaker.d.ts" />
10
+ /// <reference path="transliterate.d.ts" />
11
+ /// <reference path="crypto.d.ts" />
12
+ /// <reference path="csv.d.ts" />
13
+ /// <reference path="edition-info.d.ts" />
14
+ /// <reference path="escapecss.d.ts" />
5
15
 
6
16
  declare module 'tiddlywiki' {
7
17
  // Thanks for GitHub Copilot, you has helped me a lot!
@@ -81,4 +81,17 @@ declare module '$:/core/modules/utils/logger.js' {
81
81
  */
82
82
  clearAlerts(): void;
83
83
  }
84
+ // This part is important for TypeScript to understand the constructor signature
85
+ // fixes `Property 'prototype' is missing in type 'Logger' but required in type 'typeof Logger'.ts(2741)`
86
+ export interface Logger {
87
+ new (
88
+ componentName?: string,
89
+ options?: {
90
+ colour?: string;
91
+ enable?: boolean;
92
+ save?: boolean;
93
+ saveLimit?: number;
94
+ }
95
+ ): Logger;
96
+ }
84
97
  }
File without changes