tw5-typed 0.6.6 → 0.6.7

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.6",
3
+ "version": "0.6.7",
4
4
  "scripts": {
5
5
  "check": "tsc --noEmit && eslint src/**/*.ts",
6
6
  "docs": "docs-ts",
@@ -12,7 +12,7 @@ declare module 'tiddlywiki' {
12
12
 
13
13
  export type ITWConfig = IConfig;
14
14
 
15
- interface IConfig {
15
+ export interface IConfig {
16
16
  [configName: string]: any;
17
17
  /** Map type to file content type */
18
18
  contentTypeInfo: Record<string, IContentTypeInfo>;
package/src/core.d.ts CHANGED
@@ -30,6 +30,13 @@ declare module 'tiddlywiki' {
30
30
 
31
31
  export type IWikiInfo = Record<string, unknown>;
32
32
 
33
+ export interface ITiddlersInFile {
34
+ filepath: string;
35
+ hasMetaFile: boolean;
36
+ tiddlers: ITiddlerFields[];
37
+ type: string | null;
38
+ }
39
+
33
40
  export interface ITiddlyWiki {
34
41
  Story: typeof Story;
35
42
  Syncer: new() => Syncer;
@@ -83,8 +90,20 @@ declare module 'tiddlywiki' {
83
90
  */
84
91
  dragInProgress?: boolean;
85
92
  fakeDocument: IFakeDocument;
93
+ /**
94
+ * Find a library item (plugin/theme/language) by name in the given search paths
95
+ * @param name - Name of the library item to find
96
+ * @param paths - Array of file paths to search for it
97
+ * @returns The path of the library item folder, or null if not found
98
+ */
86
99
  findLibraryItem(name: string, paths: string[]): string | null;
87
- getLibraryItemSearchPaths(libraryPath: string, environmentVariable?: string): string;
100
+ /**
101
+ * Get the search paths for library items (plugins/themes/languages)
102
+ * @param libraryPath - Path of library folder relative to core path
103
+ * @param environmentVariable - Optional environment variable name for additional paths
104
+ * @returns Array of search paths
105
+ */
106
+ getLibraryItemSearchPaths(libraryPath: string, environmentVariable?: string): string[];
88
107
  /**
89
108
  * Global Hooks mechanism which allows plugins to modify default functionality
90
109
  */