obsidian-typings 5.11.0 → 5.12.0

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/README.md CHANGED
@@ -1,18 +1,220 @@
1
- <center>
2
-
3
1
  # Obsidian Typings
4
2
 
5
- </center>
3
+ [![NPM downloads](https://img.shields.io/npm/v/obsidian-typings?color=red&label=Version%3A&logo=npm&logoColor=white&labelColor=red)](https://www.npmjs.com/package/obsidian-typings)
4
+ [![NPM downloads](https://img.shields.io/npm/dw/obsidian-typings?style=flat&label=Downloads)](https://www.npmjs.com/package/obsidian-typings)
5
+ [![GitHub Repo stars](https://img.shields.io/github/stars/fevol/obsidian-typings?color=yellow&label=Stargazers%3A&logo=OpenTelemetry&logoColor=yellow)](https://github.com/Fevol/obsidian-typings/stargazers)
6
+
7
+ **Obsidian Typings** provides **TypeScript definitions** for Obsidian’s **undocumented and internal APIs**.
8
+
9
+ It extends the official [Obsidian API](https://github.com/obsidianmd/obsidian-api/) with:
10
+
11
+ - Additional type definitions for internal methods, properties, and plugins.
12
+ - Explanations and usage examples to make undocumented parts easier to understand.
13
+ - Helper utilities and interfaces for working with Obsidian’s internals in a safer, type-safe way.
14
+
15
+ This package is designed for plugin developers who want to access Obsidian's internal APIs in a type-safe manner,
16
+ while also keeping their code maintainable and less reliant on `@ts-ignore`/`@ts-expect-error`.
17
+
18
+ > [!IMPORTANT]
19
+ >
20
+ > - This package is **not affiliated with, or endorsed by, the Obsidian team**.
21
+ > - It does **not** cover every aspect of the Obsidian API.
22
+ > - Typings are based on reverse engineering and may be **inaccurate or unstable**. They can change without notice in future releases.
23
+ > - Always **test thoroughly** and **add fallbacks** when using internal APIs.
24
+
25
+ ## Versioning and Release Channels
26
+
27
+ [Obsidian](https://obsidian.md) has two main release channels:
28
+
29
+ - `public` - stable versions available to all users.
30
+ - [`catalyst`](https://help.obsidian.md/catalyst) (`beta`, `early access`) - versions only available to users with a catalyst license, has early access to new features.
6
31
 
7
- <div align="center">
8
- <a href="https://obsidian.md/changelog/2026-02-27-desktop-v1.12.4/"><img src="https://img.shields.io/badge/Obsidian_version-1.12.4_public-blue?logo=obsidian" alt="Obsidian version: 1.12.4 public"></a>
9
- <a href="https://github.com/Fevol/obsidian-typings/tree/release/obsidian-public/1.12.4"><img src="https://img.shields.io/badge/Git_branch-release/obsidian--public/1.12.4-red?logo=git" alt="Git branch: release/obsidian-public/1.12.4"></a>
10
- </div>
32
+ If you use internal APIs, you may need to support users on both channels.
33
+ The availability or behavior of some APIs can differ between versions, which may lead to bugs or errors if these changes are not accounted for in your plugin.
11
34
 
12
- This branch contains the typings for Obsidian version [`1.12.4 public`](https://obsidian.md/changelog/2026-02-27-desktop-v1.12.4/).
35
+ To make it easier to adapt to these differences, this package provides typings for both channels.
36
+
37
+ Typings for each `Obsidian` version can be found in their own git branches: namely `release/obsidian-public/*` and `release/obsidian-catalyst/*`:
38
+
39
+ - Latest `public` release: [`release/obsidian-public/1.12.4`](https://github.com/Fevol/obsidian-typings/tree/release/obsidian-public/1.12.4)
40
+ - Latest `catalyst` release: [`release/obsidian-catalyst/1.12.5`](https://github.com/Fevol/obsidian-typings/tree/release/obsidian-catalyst/1.12.5)
41
+
42
+ Older versions of the package are available, but support for them is limited.
43
+ In most cases, we recommend to always use the latest release.
44
+
45
+ ## Set-up
46
+
47
+ ### 1. Install via `npm`
48
+
49
+ - Latest `public` release (recommended):
50
+ - `npm install --save-dev obsidian-typings`
51
+ - Explicitly install latest `public` release:
52
+ - `npm pkg set "dependencies.obsidian-typings=obsidian-public-latest" && npm install`
53
+ - Install the latest `catalyst` (`beta`) release:
54
+ - `npm pkg set "dependencies.obsidian-typings=obsidian-catalyst-latest" && npm install`
55
+ - Install a specific release (should match `minAppVersion` in your plugin's `manifest.json`):
56
+ - `npm pkg set "dependencies.obsidian-typings=obsidian-public-1.8.10" && npm install`
57
+ - `npm pkg set "dependencies.obsidian-typings=obsidian-catalyst-1.9.9" && npm install`
58
+
59
+ > [!IMPORTANT]
60
+ >
61
+ > If you installed library using `npm pkg set` approach, you will have to update it using `npm update obsidian-typings` command.
62
+ >
63
+ > If you run `npm install obsidian-typings` instead, the most likely, the library will not get updated.
64
+
65
+ &nbsp;
66
+
67
+ > [!WARNING]
68
+ >
69
+ > The package installs several libraries that trigger `npm audit` warnings.
70
+ >
71
+ > Those packages cannot be updated because they should match the exact versions Obsidian uses internally.
72
+
73
+ <!-- markdownlint-disable MD033 -->
74
+
75
+ ### 2. Enable in `tsconfig.json` (recommended) <span id="add-types-setting-to-tsconfig-json"></span>
76
+
77
+ <!-- markdownlint-enable MD033 -->
78
+
79
+ Add `obsidian-typings` to the `types` array of your `tsconfig.json` to make all extended typings available globally without explicit importing them:
80
+
81
+ ```json
82
+ {
83
+ "compilerOptions": {
84
+ "...": "...",
85
+ "types": [
86
+ "obsidian-typings"
87
+ ]
88
+ }
89
+ }
90
+ ```
13
91
 
14
92
  > [!WARNING]
15
93
  >
16
- > If you are making a PR to this branch, please make sure to verify that all your changes are applicable to this version.
94
+ > If other `@types/*` packages stop being recognized after adding `obsidian-typings` to the `types`, you may need to re-add them to the `types` list.
95
+ >
96
+ > ```json
97
+ > {
98
+ > "compilerOptions": {
99
+ > "...": "...",
100
+ > "types": [
101
+ > "obsidian-typings",
102
+ > "some-package-name"
103
+ > ]
104
+ > }
105
+ > }
106
+
107
+ ### 3. Importing explicitly (alternative)
108
+
109
+ Instead of adding `obsidian-typings` to your `types`, you can also import the package directly:
110
+
111
+ ```ts
112
+ import type {} from 'obsidian-typings';
113
+ ```
114
+
115
+ ## Usage
116
+
117
+ ### `obsidian` module internals
118
+
119
+ To access types from the `obsidian` module, the import syntax does not change:
120
+
121
+ ```ts
122
+ import type { App } from 'obsidian';
123
+
124
+ function printInternalPlugins(app: App): void {
125
+ console.log(app.internalPlugins);
126
+ }
127
+ ```
128
+
129
+ ### `obsidian-typings` additional interfaces
130
+
131
+ Additional interfaces added by this package (which do not exist in the official API), can be imported as:
132
+
133
+ ```ts
134
+ import type { InternalPlugins } from 'obsidian-typings';
135
+
136
+ function getInternalPlugins(app: App): InternalPlugins {
137
+ return app.internalPlugins;
138
+ }
139
+ ```
140
+
141
+ ### `obsidian-typings/implementations`
142
+
143
+ Additional helper functions/types/... added by this package can be used by importing from `obsidian-typings/implementations`:
144
+
145
+ ```ts
146
+ import { InternalPluginName } from 'obsidian-typings/implementations';
147
+
148
+ // If you forget the `/implementations` part:
149
+ // import { InternalPluginName } from 'obsidian-typings';
150
+ // You will not be able to use the runtime values and the code below will not compile.
151
+
152
+ this.app.internalPlugins.getEnabledPluginById(InternalPluginName.FileExplorer);
153
+ ```
154
+
155
+ The list of all available implementations can be found in the `src/obsidian/implementations` folder in the corresponding release branch ([example for `1.9.10 public`](https://github.com/Fevol/obsidian-typings/tree/release/obsidian-public/1.9.10/src/obsidian/implementations)).
156
+
157
+ ### Extend with your own typings
158
+
159
+ If you need to extend the typings provided by this package, add the following to any `.d.ts` file in your project:
160
+
161
+ ```ts
162
+ export {}; // This line is required. If there are no top-level `import/export` statements, your typings will work not as expected.
163
+ declare module 'obsidian-typings' {
164
+ interface PluginsPluginsRecord {
165
+ ['my-plugin-id']: MyPlugin;
166
+ }
167
+ }
168
+ ```
169
+
170
+ ## Disclaimer
171
+
172
+ > [!WARNING]
173
+ >
174
+ > Make sure to read below section in detail before using these typings.
175
+ >
176
+ > Use at your own risk, verify that the code behaves as expected, and be prepared to update your code if the API changes.
177
+
178
+ Please be aware that there is a good reason why (some of) the functions and types defined here are not included with the official API definitions:
179
+
180
+ - The methods are not fully defined, and will be changed or removed in the near-future
181
+ - There is a high risk of the code behaving unexpectedly if used improperly
182
+ - The function was never meant to be used
183
+
184
+ Please use the functions and variables provided by this package with caution.
185
+ Be prepared to update your code if the API changes, and only use the functions if you are confident that you understand what they will do.
186
+ Reference the [official API](https://github.com/obsidianmd/obsidian-api/blob/master/obsidian.d.ts) first to see if your problem may be solved with a documented function, or search in the `#plugin-dev` channel of the Obsidian Discord server.
187
+ Some functions will also contain `@remark` TSDoc tags that provide alternatives or better solutions.
188
+
189
+ Furthermore, there is a very high chance that there are mistakes in the typings, despite best efforts.
190
+ All types had to be deduced from context, manually running the function, or from the minified app code.
191
+ Always verify that your code behaves as expected, both in terms of types and runtime behavior.
192
+
193
+ > [!WARNING]
194
+ >
195
+ > While the typings themselves were hand-written by the package maintainers and contributors, the majority of the `@tsdoc` documentation has been minimally completed using generative AI and may be inaccurate.
196
+
197
+ &nbsp;
198
+
199
+ > [!TIP]
200
+ >
201
+ > If you find any issues with the typings or documentation, please feel free to [open an issue](https://github.com/Fevol/obsidian-typings/issues) or submit a pull request.
202
+
203
+ With these scary disclaimers out of the way, hopefully these typings will help you in removing 90% of the `@ts-ignore`/`@ts-expect-error` you have in your codebase, or discover solutions that didn't seem possible before.
204
+
205
+ ## Tags
206
+
207
+ - `@remark` warnings, caveats, or suggested alternatives.
208
+ - `@tutorial` extra guidance and examples.
209
+ - `@official` comes from the [official API](https://github.com/obsidianmd/obsidian-api/blob/master/obsidian.d.ts).
210
+ - `@unofficial` based on reverse engineering.
211
+
212
+ ## Migration
213
+
214
+ If you were using a `1.x.x` version of this package, see the [Migration guide](https://github.com/Fevol/obsidian-typings/blob/main/MIGRATION.md) for upgrading to `2.0.0` or newer.
215
+
216
+ ## Contributing
217
+
218
+ Feel free to start typing any part of the Obsidian API that is not yet typed, or fixing/adding additional descriptions to existing typings. If you are unsure about anything, don't hesitate to open an issue.
17
219
 
18
- [See full docs](https://github.com/Fevol/obsidian-typings/blob/main/README.md)
220
+ A brief tutorial is available on how you can get started with adding new typings, or fixing existing ones, see: [CONTRIBUTING.md](https://github.com/Fevol/obsidian-typings/blob/main/CONTRIBUTING.md).
@@ -1701,7 +1701,7 @@ declare global {
1701
1701
  * CodeMirror adapter providing CM5-compatible API over CM6.
1702
1702
  * @unofficial
1703
1703
  */
1704
- const CodeMirrorAdapter: CodeMirrorAdapterEx;
1704
+ var CodeMirrorAdapter: CodeMirrorAdapterEx;
1705
1705
  }
1706
1706
  declare global {
1707
1707
  /**
@@ -1709,7 +1709,7 @@ declare global {
1709
1709
  *
1710
1710
  * @unofficial
1711
1711
  */
1712
- const FS: ExtractConstructor<CapacitorAdapterFs>;
1712
+ var FS: ExtractConstructor<CapacitorAdapterFs>;
1713
1713
  }
1714
1714
  declare global {
1715
1715
  /**
@@ -1805,42 +1805,42 @@ declare global {
1805
1805
  * @unofficial
1806
1806
  * @deprecated - Added only for typing purposes. Use {@link DOMPurify} instead.
1807
1807
  */
1808
- const DOMPurify__: typeof import("dompurify");
1808
+ var DOMPurify__: typeof import("dompurify");
1809
1809
  }
1810
1810
  declare global {
1811
1811
  /**
1812
1812
  * Default internationalization strings bundled with Obsidian.
1813
1813
  * @unofficial
1814
1814
  */
1815
- const OBSIDIAN_DEFAULT_I18N: Localization;
1815
+ var OBSIDIAN_DEFAULT_I18N: Localization;
1816
1816
  }
1817
1817
  declare global {
1818
1818
  /**
1819
1819
  * Electron BrowserWindow instance for the current window.
1820
1820
  * @unofficial
1821
1821
  */
1822
- const electronWindow: ElectronWindow;
1822
+ var electronWindow: ElectronWindow;
1823
1823
  }
1824
1824
  declare global {
1825
1825
  /**
1826
1826
  * Electron BrowserWindow instance for the current window.
1827
1827
  * @unofficial
1828
1828
  */
1829
- const frameDom: FrameDom;
1829
+ var frameDom: FrameDom;
1830
1830
  }
1831
1831
  declare global {
1832
1832
  /**
1833
1833
  * Electron WebView tag for embedding external web content.
1834
1834
  * @unofficial
1835
1835
  */
1836
- const WebView: WebviewTag;
1836
+ var WebView: WebviewTag;
1837
1837
  }
1838
1838
  declare global {
1839
1839
  /**
1840
1840
  * Electron module for desktop platform APIs.
1841
1841
  * @unofficial
1842
1842
  */
1843
- const electron: typeof import("electron");
1843
+ var electron: typeof import("electron");
1844
1844
  }
1845
1845
  declare global {
1846
1846
  /**
@@ -1897,7 +1897,7 @@ declare global {
1897
1897
  * @unofficial
1898
1898
  * @deprecated - Added only for typing purposes. Use {@link CodeMirror} instead.
1899
1899
  */
1900
- const CodeMirror__: typeof import("codemirror");
1900
+ var CodeMirror__: typeof import("codemirror");
1901
1901
  }
1902
1902
  declare global {
1903
1903
  /**
@@ -1906,7 +1906,7 @@ declare global {
1906
1906
  * @unofficial
1907
1907
  * @deprecated - Prefer not to use this value directly.
1908
1908
  */
1909
- const app: App;
1909
+ var app: App;
1910
1910
  }
1911
1911
  declare global {
1912
1912
  /**
@@ -1943,21 +1943,21 @@ declare global {
1943
1943
  *
1944
1944
  * @unofficial
1945
1945
  */
1946
- const OBS_ACT__: ObsidianProtocolHandler;
1946
+ var OBS_ACT__: ObsidianProtocolHandler;
1947
1947
  }
1948
1948
  declare global {
1949
1949
  /**
1950
1950
  * MathJax instance for rendering mathematical notation.
1951
1951
  * @unofficial
1952
1952
  */
1953
- const MathJax: MathJaxEx;
1953
+ var MathJax: MathJaxEx;
1954
1954
  }
1955
1955
  declare global {
1956
1956
  /**
1957
1957
  * Mermaid library instance for rendering diagrams and charts.
1958
1958
  * @unofficial
1959
1959
  */
1960
- const mermaid: Mermaid;
1960
+ var mermaid: Mermaid;
1961
1961
  }
1962
1962
  declare global {
1963
1963
  /**
@@ -2009,35 +2009,35 @@ declare global {
2009
2009
  * Minified reference to `Object.defineProperties`.
2010
2010
  * @unofficial
2011
2011
  */
2012
- const Sf: typeof Object.defineProperties;
2012
+ var Sf: typeof Object.defineProperties;
2013
2013
  }
2014
2014
  declare global {
2015
2015
  /**
2016
2016
  * Minified reference to `Object.defineProperty`.
2017
2017
  * @unofficial
2018
2018
  */
2019
- const i18next: typeof import("i18next");
2019
+ var i18next: typeof import("i18next");
2020
2020
  }
2021
2021
  declare global {
2022
2022
  /**
2023
2023
  * Minified reference to `Object.defineProperty`.
2024
2024
  * @unofficial
2025
2025
  */
2026
- const wf: typeof Object.defineProperty;
2026
+ var wf: typeof Object.defineProperty;
2027
2027
  }
2028
2028
  declare global {
2029
2029
  /**
2030
2030
  * Minified reference to `Object.getOwnPropertyDescriptors`.
2031
2031
  * @unofficial
2032
2032
  */
2033
- const Cf: typeof Object.getOwnPropertyDescriptors;
2033
+ var Cf: typeof Object.getOwnPropertyDescriptors;
2034
2034
  }
2035
2035
  declare global {
2036
2036
  /**
2037
2037
  * Minified reference to `Object.getOwnPropertySymbols`.
2038
2038
  * @unofficial
2039
2039
  */
2040
- const mr: typeof Object.getOwnPropertySymbols;
2040
+ var mr: typeof Object.getOwnPropertySymbols;
2041
2041
  }
2042
2042
  declare global {
2043
2043
  /**
@@ -2045,42 +2045,42 @@ declare global {
2045
2045
  *
2046
2046
  * @unofficial
2047
2047
  */
2048
- const bl: typeof Object.hasOwnProperty;
2048
+ var bl: typeof Object.hasOwnProperty;
2049
2049
  }
2050
2050
  declare global {
2051
2051
  /**
2052
2052
  * Minified reference to `Object.propertyIsEnumerable`.
2053
2053
  * @unofficial
2054
2054
  */
2055
- const El: typeof Object.propertyIsEnumerable;
2055
+ var El: typeof Object.propertyIsEnumerable;
2056
2056
  }
2057
2057
  declare global {
2058
2058
  /**
2059
2059
  * Native Blink engine FormData constructor.
2060
2060
  * @unofficial
2061
2061
  */
2062
- const blinkFormData: typeof FormData;
2062
+ var blinkFormData: typeof FormData;
2063
2063
  }
2064
2064
  declare global {
2065
2065
  /**
2066
2066
  * Native Blink engine Headers constructor.
2067
2067
  * @unofficial
2068
2068
  */
2069
- const blinkHeaders: typeof Headers;
2069
+ var blinkHeaders: typeof Headers;
2070
2070
  }
2071
2071
  declare global {
2072
2072
  /**
2073
2073
  * Native Blink engine Request constructor.
2074
2074
  * @unofficial
2075
2075
  */
2076
- const blinkRequest: typeof Request;
2076
+ var blinkRequest: typeof Request;
2077
2077
  }
2078
2078
  declare global {
2079
2079
  /**
2080
2080
  * Native Blink engine Response constructor.
2081
2081
  * @unofficial
2082
2082
  */
2083
- const blinkResponse: typeof Response;
2083
+ var blinkResponse: typeof Response;
2084
2084
  }
2085
2085
  declare global {
2086
2086
  /**
@@ -2088,16 +2088,16 @@ declare global {
2088
2088
  * @unofficial
2089
2089
  * @hidden
2090
2090
  */
2091
- const blinkfetch: typeof fetch;
2091
+ var blinkfetch: typeof fetch;
2092
2092
  }
2093
2093
  declare global {
2094
2094
  /**
2095
2095
  * Notification component. Use to present timely, high-value information.
2096
2096
  *
2097
2097
  * @unofficial
2098
- * @deprecated - Added only for typing purposes. Use {@link Notice} instead.
2098
+ * @deprecated - Added only for typing purposes. Use `window.Notice` or `import type { Notice } from 'obsidian'` instead.
2099
2099
  */
2100
- const Notice__: typeof Notice;
2100
+ var Notice__: typeof Notice;
2101
2101
  }
2102
2102
  declare global {
2103
2103
  /**
@@ -2338,7 +2338,7 @@ declare global {
2338
2338
  * PDF.js library for parsing and rendering PDF documents.
2339
2339
  * @unofficial
2340
2340
  */
2341
- const pdfjsLib: typeof import("pdfjs-dist");
2341
+ var pdfjsLib: typeof import("pdfjs-dist");
2342
2342
  }
2343
2343
  declare global {
2344
2344
  /**
@@ -2347,14 +2347,14 @@ declare global {
2347
2347
  * @unofficial
2348
2348
  * @deprecated - Added only for typing purposes. Use {@link moment} instead.
2349
2349
  */
2350
- const moment__: typeof momentInstance;
2350
+ var moment__: typeof momentInstance;
2351
2351
  }
2352
2352
  declare global {
2353
2353
  /**
2354
2354
  * PixiJS library for 2D rendering (used for canvas views).
2355
2355
  * @unofficial
2356
2356
  */
2357
- const PIXI: typeof import("pixi.js");
2357
+ var PIXI: typeof import("pixi.js");
2358
2358
  }
2359
2359
  declare global {
2360
2360
  /**
@@ -2362,7 +2362,7 @@ declare global {
2362
2362
  * @unofficial
2363
2363
  * @deprecated - Added only for typing purposes. Use {@link Prism} instead.
2364
2364
  */
2365
- const Prism__: typeof import("prismjs");
2365
+ var Prism__: typeof import("prismjs");
2366
2366
  }
2367
2367
  declare global {
2368
2368
  /**
@@ -2370,14 +2370,14 @@ declare global {
2370
2370
  * @unofficial
2371
2371
  */
2372
2372
  // eslint-disable-next-line import-x/no-deprecated -- No other way.
2373
- const CapacitorPlatforms: typeof CapacitorPlatformsInstance;
2373
+ var CapacitorPlatforms: typeof CapacitorPlatformsInstance;
2374
2374
  }
2375
2375
  declare global {
2376
2376
  /**
2377
2377
  * Registry of available Capacitor platform implementations.
2378
2378
  * @unofficial
2379
2379
  */
2380
- const Capacitor: typeof CapacitorInstance;
2380
+ var Capacitor: typeof CapacitorInstance;
2381
2381
  }
2382
2382
  declare global {
2383
2383
  /**
@@ -2385,7 +2385,7 @@ declare global {
2385
2385
  * @unofficial
2386
2386
  * @deprecated - Added only for typing purposes. Use {@link scrypt} instead.
2387
2387
  */
2388
- const scrypt__: typeof scryptInstance;
2388
+ var scrypt__: typeof scryptInstance;
2389
2389
  }
2390
2390
  declare global {
2391
2391
  /**
@@ -2438,7 +2438,7 @@ declare global {
2438
2438
  *
2439
2439
  * @unofficial
2440
2440
  */
2441
- const requestUrl: typeof requestUrlInstance;
2441
+ var requestUrl: typeof requestUrlInstance;
2442
2442
  }
2443
2443
  declare global {
2444
2444
  /**
@@ -2447,7 +2447,7 @@ declare global {
2447
2447
  * Returns the text value of the response.
2448
2448
  * @unofficial
2449
2449
  */
2450
- const request: typeof requestInstance;
2450
+ var request: typeof requestInstance;
2451
2451
  }
2452
2452
  declare global {
2453
2453
  /**
@@ -2468,14 +2468,14 @@ declare global {
2468
2468
  * Temporary reference to the WebSQL database `changeVersion` method.
2469
2469
  * @unofficial
2470
2470
  */
2471
- const temp1: Database["changeVersion"];
2471
+ var temp1: Database["changeVersion"];
2472
2472
  }
2473
2473
  declare global {
2474
2474
  /**
2475
2475
  * Testing utilities for PDF.js.
2476
2476
  * @unofficial
2477
2477
  */
2478
- const pdfjsTestingUtils: PdfJsTestingUtils;
2478
+ var pdfjsTestingUtils: PdfJsTestingUtils;
2479
2479
  }
2480
2480
  declare global {
2481
2481
  /**
@@ -2485,7 +2485,7 @@ declare global {
2485
2485
  * @official
2486
2486
  * @deprecated - Added only for typing purposes. Use {@link activeDocument} instead.
2487
2487
  */
2488
- let activeDocument__: Document;
2488
+ var activeDocument__: Document;
2489
2489
  }
2490
2490
  declare global {
2491
2491
  /**
@@ -2495,21 +2495,21 @@ declare global {
2495
2495
  * @official
2496
2496
  * @deprecated - Added only for typing purposes. Use {@link activeWindow} instead.
2497
2497
  */
2498
- let activeWindow__: Window;
2498
+ var activeWindow__: Window;
2499
2499
  }
2500
2500
  declare global {
2501
2501
  /**
2502
2502
  * The style of the window title bar (e.g., "hidden", "default").
2503
2503
  * @unofficial
2504
2504
  */
2505
- const titlebarStyle: string;
2505
+ var titlebarStyle: string;
2506
2506
  }
2507
2507
  declare global {
2508
2508
  /**
2509
2509
  * TurndownService for converting HTML to Markdown.
2510
2510
  * @unofficial
2511
2511
  */
2512
- const TurndownService: typeof import("turndown");
2512
+ var TurndownService: typeof import("turndown");
2513
2513
  }
2514
2514
  declare global {
2515
2515
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "5.11.0",
3
+ "version": "5.12.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",