obsidian-typings 2.2.0 → 2.2.1-beta.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.
@@ -3,7 +3,7 @@
3
3
  import * as fs from 'node:fs';
4
4
  import * as fsPromises from 'node:fs/promises';
5
5
  import * as path from 'node:path';
6
- import { TAbstractFile, TFile, TFolder, Vault } from 'obsidian';
6
+ import { FileStats, TAbstractFile, TFile, TFolder, Vault } from 'obsidian';
7
7
 
8
8
  /**
9
9
  * Creates and properly initializes the instance of TFolder even the underlying folder does not exist.
@@ -305,6 +305,8 @@ export interface AppVaultConfig {
305
305
  /** @public */
306
306
  export type ConfigItem = "accentColor" | "alwaysUpdateLinks" | "attachmentFolderPath" | "autoConvertHtml" | "autoPairBrackets" | "autoPairMarkdown" | "baseFontSize" | "baseFontSizeAction" | "cssTheme" | "defaultViewMode" | "emacsyKeys" | "enabledCssSnippets" | "fileSortOrder" | "focusNewTab" | "foldHeading" | "foldIndent" | "hotkeys" | "interfaceFontFamily" | "legacyEditor" | "livePreview" | "mobilePullAction" | "mobileQuickRibbonItem" | "mobileToolbarCommands" | "monospaceFontFamily" | "nativeMenus" | "newFileFolderPath" | "newFileLocation" | "newLinkFormat" | "pdfExportSettings" | "promptDelete" | "propertiesInDocument" | "readableLineLength" | "rightToLeft" | "showIndentGuide" | "showInlineTitle" | "showLineNumber" | "showUnsupportedFiles" | "showViewHeader" | "showRibbon" | "smartIndentList" | "spellcheck" | "spellcheckLanguages" | "strictLineBreaks" | "tabSize" | "textFontFamily" | "theme" | "translucency" | "trashOption" | "types" | "useMarkdownLinks" | "useTab" | "userIgnoreFilters" | "vimMode";
307
307
  /** @public */
308
+ export type FileSystemWatchHandler = (eventType: string, path: string, oldPath?: string, stats?: FileStats) => void;
309
+ /** @public */
308
310
  export interface VaultFileMapRecord extends Record<string, TAbstractFile> {
309
311
  }
310
312
  /** @public */
@@ -18168,6 +18168,41 @@
18168
18168
  ],
18169
18169
  "extendsTokenRanges": []
18170
18170
  },
18171
+ {
18172
+ "kind": "TypeAlias",
18173
+ "canonicalReference": "obsidian-typings!FileSystemWatchHandler:type",
18174
+ "docComment": "/**\n * @public\n */\n",
18175
+ "excerptTokens": [
18176
+ {
18177
+ "kind": "Content",
18178
+ "text": "export type FileSystemWatchHandler = "
18179
+ },
18180
+ {
18181
+ "kind": "Content",
18182
+ "text": "(eventType: string, path: string, oldPath?: string, stats?: "
18183
+ },
18184
+ {
18185
+ "kind": "Reference",
18186
+ "text": "FileStats",
18187
+ "canonicalReference": "obsidian!FileStats:interface"
18188
+ },
18189
+ {
18190
+ "kind": "Content",
18191
+ "text": ") => void"
18192
+ },
18193
+ {
18194
+ "kind": "Content",
18195
+ "text": ";"
18196
+ }
18197
+ ],
18198
+ "fileUrlPath": "src/obsidian/internals/FileSystemWatchHandler.d.ts",
18199
+ "releaseTag": "Public",
18200
+ "name": "FileSystemWatchHandler",
18201
+ "typeTokenRange": {
18202
+ "startIndex": 1,
18203
+ "endIndex": 4
18204
+ }
18205
+ },
18171
18206
  {
18172
18207
  "kind": "Interface",
18173
18208
  "canonicalReference": "obsidian-typings!FileTreeItem:interface",
@@ -22832,7 +22867,7 @@
22832
22867
  {
22833
22868
  "kind": "TypeAlias",
22834
22869
  "canonicalReference": "obsidian-typings!LinkUpdateHandler:type",
22835
- "docComment": "",
22870
+ "docComment": "/**\n * @public\n */\n",
22836
22871
  "excerptTokens": [
22837
22872
  {
22838
22873
  "kind": "Content",