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 +1 -1
- package/src/boot/config.d.ts +1 -1
- package/src/core.d.ts +20 -1
package/package.json
CHANGED
package/src/boot/config.d.ts
CHANGED
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
|
-
|
|
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
|
*/
|