tw5-typed 0.4.1 → 0.4.2

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.1",
5
+ "version": "0.4.2",
6
6
  "url": "https://github.com/tiddly-gittly/tw5-typed",
7
7
  "homepage": "https://github.com/tiddly-gittly/tw5-typed",
8
8
  "bugs": {
@@ -17,7 +17,8 @@
17
17
  "src/"
18
18
  ],
19
19
  "scripts": {
20
- "check": "tsc --noEmit && eslint src/**/*.ts"
20
+ "check": "tsc --noEmit && eslint src/**/*.ts",
21
+ "prepublishOnly": "npm run check"
21
22
  },
22
23
  "husky": {
23
24
  "hooks": {
@@ -119,6 +119,7 @@ declare module '$:/core/modules/utils/utils.js' {
119
119
  wiki?: Wiki;
120
120
  },
121
121
  ): string;
122
+ }
122
123
 
123
124
  declare module 'tiddlywiki' {
124
125
  interface IUtils {
@@ -20,7 +20,8 @@ declare module 'tiddlywiki' {
20
20
  import * as filesystem from '$:/core/modules/utils/filesystem.js';
21
21
  import * as LinkedList from '$:/core/modules/utils/linked-list.js';
22
22
  import * as performance from '$:/core/modules/utils/performance.js';
23
- import * as logger from '$:/core/modules/utils/logger.js';
23
+ // import the class directly, to fix: Property 'log' does not exist on type 'typeof Logger'.ts(2339)
24
+ import { Logger } from '$:/core/modules/utils/logger.js';
24
25
  import * as parsetree from '$:/core/modules/utils/parsetree.js';
25
26
  import * as pluginMaker from '$:/core/modules/utils/pluginmaker.js';
26
27
  import * as transliterate from '$:/core/modules/utils/transliterate.js';
@@ -34,12 +35,11 @@ declare module 'tiddlywiki' {
34
35
  Pick<typeof utils, keyof typeof utils> &
35
36
  Pick<typeof LinkedList, keyof typeof LinkedList> &
36
37
  Pick<typeof performance, keyof typeof performance> &
37
- Pick<typeof logger, keyof typeof logger> &
38
38
  Pick<typeof parsetree, keyof typeof parsetree> &
39
39
  Pick<typeof pluginMaker, keyof typeof pluginMaker> &
40
40
  Pick<typeof transliterate, keyof typeof transliterate> &
41
41
  Pick<typeof crypto, keyof typeof crypto> &
42
42
  Pick<typeof csv, keyof typeof csv> &
43
43
  Pick<typeof editionInfo, keyof typeof editionInfo> &
44
- Pick<typeof escapecss, keyof typeof escapecss>;
44
+ Pick<typeof escapecss, keyof typeof escapecss> & { Logger: Logger };
45
45
  }