tw5-typed 0.6.4 → 0.6.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tw5-typed",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "scripts": {
5
5
  "check": "tsc --noEmit && eslint src/**/*.ts",
6
6
  "docs": "docs-ts",
@@ -1,9 +1,7 @@
1
1
  /// <reference path="../../wiki/index.d.ts" />
2
2
  /// <reference path="../../tiddler/index.d.ts" />
3
3
 
4
- declare module '$:/core/modules/utils/utils.js' {
5
- import type { Tiddler, Wiki } from 'tiddlywiki';
6
-
4
+ declare module 'tiddlywiki' {
7
5
  /**
8
6
  * File information for saving a tiddler
9
7
  */
@@ -17,6 +15,11 @@ declare module '$:/core/modules/utils/utils.js' {
17
15
  writeError?: boolean;
18
16
  encoding?: string;
19
17
  }
18
+ }
19
+
20
+ declare module '$:/core/modules/utils/filesystem.js' {
21
+ import type { Tiddler, Wiki, FileInfo } from 'tiddlywiki';
22
+
20
23
  /**
21
24
  * Return the subdirectories of a path
22
25
  * @param directoryPath - The path to the directory
@@ -33,7 +33,7 @@ declare module 'tiddlywiki' {
33
33
  type IUtilsModules =
34
34
  & Pick<typeof dom, keyof typeof dom>
35
35
  & Pick<typeof logger, keyof typeof logger>
36
- & Partial<Pick<typeof filesystem, keyof typeof filesystem>>
36
+ & Pick<typeof filesystem, keyof typeof filesystem>
37
37
  & Pick<typeof utils, keyof typeof utils>
38
38
  & Pick<typeof LinkedList, keyof typeof LinkedList>
39
39
  & Pick<typeof performance, keyof typeof performance>