obsidian-typings 3.2.0 → 3.2.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.
@@ -2821,7 +2821,7 @@ declare module "obsidian" {
2821
2821
  * @official
2822
2822
  * @deprecated - Added only for typing purposes. Use {@link blur} instead.
2823
2823
  */
2824
- blur__(): void;
2824
+ blur__?(): void;
2825
2825
  /**
2826
2826
  * Convert editor position to screen position.
2827
2827
  *
@@ -2852,7 +2852,7 @@ declare module "obsidian" {
2852
2852
  * @official
2853
2853
  * @deprecated - Added only for typing purposes. Use {@link focus} instead.
2854
2854
  */
2855
- focus__(): void;
2855
+ focus__?(): void;
2856
2856
  /**
2857
2857
  * Unfolds all folded lines one level up.
2858
2858
  *
@@ -2938,7 +2938,7 @@ declare module "obsidian" {
2938
2938
  * @returns The scroll info.
2939
2939
  * @official
2940
2940
  */
2941
- getScrollInfo__(): {
2941
+ getScrollInfo__?(): {
2942
2942
  /** @official */
2943
2943
  top: number;
2944
2944
  /** @official */
@@ -2951,7 +2951,7 @@ declare module "obsidian" {
2951
2951
  * @official
2952
2952
  * @deprecated - Added only for typing purposes. Use {@link getSelection} instead.
2953
2953
  */
2954
- getSelection__(): string;
2954
+ getSelection__?(): string;
2955
2955
  /**
2956
2956
  * Get the content of the editor.
2957
2957
  *
@@ -2959,14 +2959,14 @@ declare module "obsidian" {
2959
2959
  * @official
2960
2960
  * @deprecated - Added only for typing purposes. Use {@link getValue} instead.
2961
2961
  */
2962
- getValue__(): string;
2962
+ getValue__?(): string;
2963
2963
  /**
2964
2964
  * Check if the editor is focused.
2965
2965
  *
2966
2966
  * @returns Whether the editor is focused.
2967
2967
  * @official
2968
2968
  */
2969
- hasFocus__(): boolean;
2969
+ hasFocus__?(): boolean;
2970
2970
  /**
2971
2971
  * Checks whether the editor has a highlight of specified class.
2972
2972
  *
@@ -2988,7 +2988,7 @@ declare module "obsidian" {
2988
2988
  * @official
2989
2989
  * @deprecated - Added only for typing purposes. Use {@link lastLine} instead.
2990
2990
  */
2991
- lastLine__(): number;
2991
+ lastLine__?(): number;
2992
2992
  /**
2993
2993
  * Gets the amount of lines in the document.
2994
2994
  *
@@ -2996,7 +2996,7 @@ declare module "obsidian" {
2996
2996
  * @official
2997
2997
  * @deprecated - Added only for typing purposes. Use {@link lineCount} instead.
2998
2998
  */
2999
- lineCount__(): number;
2999
+ lineCount__?(): number;
3000
3000
  /**
3001
3001
  * Get the list of selections if multiple cursors are active.
3002
3002
  *
@@ -3004,7 +3004,7 @@ declare module "obsidian" {
3004
3004
  * @official
3005
3005
  * @deprecated - Added only for typing purposes. Use {@link listSelections} instead.
3006
3006
  */
3007
- listSelections__(): EditorSelection[];
3007
+ listSelections__?(): EditorSelection[];
3008
3008
  /**
3009
3009
  * Convert an offset to a position.
3010
3010
  *
@@ -3068,7 +3068,7 @@ declare module "obsidian" {
3068
3068
  * @official
3069
3069
  * @deprecated - Added only for typing purposes. Use {@link redo} instead.
3070
3070
  */
3071
- redo__(): void;
3071
+ redo__?(): void;
3072
3072
  /**
3073
3073
  * Refresh the editor.
3074
3074
  *
@@ -3079,7 +3079,7 @@ declare module "obsidian" {
3079
3079
  * @official
3080
3080
  * @deprecated - Added only for typing purposes. Use {@link refresh} instead.
3081
3081
  */
3082
- refresh__(): void;
3082
+ refresh__?(): void;
3083
3083
  /**
3084
3084
  * Removes all highlights of specified class.
3085
3085
  *
@@ -3222,7 +3222,7 @@ declare module "obsidian" {
3222
3222
  * @official
3223
3223
  * @deprecated - Added only for typing purposes. Use {@link undo} instead.
3224
3224
  */
3225
- undo__(): void;
3225
+ undo__?(): void;
3226
3226
  /**
3227
3227
  * Get the word at a specific position.
3228
3228
  *
@@ -3355,7 +3355,7 @@ declare module "obsidian" {
3355
3355
  * @official
3356
3356
  * @deprecated - Added only for typing purposes. Use {@link constructor} instead.
3357
3357
  */
3358
- constructor__(): this;
3358
+ constructor__?(): this;
3359
3359
  /**
3360
3360
  * Hide the menu.
3361
3361
  *
@@ -4216,7 +4216,7 @@ declare module "obsidian" {
4216
4216
  * @official
4217
4217
  * @deprecated - Added only for typing purposes. Use {@link constructor} instead.
4218
4218
  */
4219
- constructor__(): this;
4219
+ constructor__?(): this;
4220
4220
  /**
4221
4221
  * Executes the callback of the onClick event (if not disabled).
4222
4222
  *
@@ -4419,7 +4419,7 @@ declare module "obsidian" {
4419
4419
  * @official
4420
4420
  * @deprecated - Added only for typing purposes. Use {@link file} instead.
4421
4421
  */
4422
- get file__(): TFile;
4422
+ file__?(): TFile;
4423
4423
  /**
4424
4424
  * @todo Documentation incomplete.
4425
4425
  * @unofficial
@@ -4762,7 +4762,7 @@ declare module "obsidian" {
4762
4762
  * @official
4763
4763
  * @deprecated - Added only for typing purposes. Use {@link display} instead.
4764
4764
  */
4765
- display__(): void;
4765
+ display__?(): void;
4766
4766
  /**
4767
4767
  * Hides the contents of the setting tab.
4768
4768
  * Any registered components should be unloaded when the view is hidden.
@@ -5638,7 +5638,7 @@ declare module "obsidian" {
5638
5638
  * @official
5639
5639
  * @deprecated - Added only for typing purposes. Use {@link getValue} instead.
5640
5640
  */
5641
- getValue__(): T;
5641
+ getValue__?(): T;
5642
5642
  /**
5643
5643
  * Register an option listener.
5644
5644
  *
@@ -5783,7 +5783,7 @@ declare module "obsidian" {
5783
5783
  * @official
5784
5784
  * @deprecated - Added only for typing purposes. Use {@link file} instead.
5785
5785
  */
5786
- get file__(): TFile | null;
5786
+ file__?(): TFile | null;
5787
5787
  /**
5788
5788
  * Add property to inline metadata editor or properties plugin.
5789
5789
  *
@@ -8616,7 +8616,7 @@ declare module "obsidian" {
8616
8616
  * @official
8617
8617
  * @deprecated - Added only for typing purposes. Use {@link getDisplayText} instead.
8618
8618
  */
8619
- getDisplayText__(): string;
8619
+ getDisplayText__?(): string;
8620
8620
  /**
8621
8621
  * Get the ephemeral state of the view.
8622
8622
  *
@@ -8651,7 +8651,7 @@ declare module "obsidian" {
8651
8651
  * @official
8652
8652
  * @deprecated - Added only for typing purposes. Use {@link getViewType} instead.
8653
8653
  */
8654
- getViewType__(): string;
8654
+ getViewType__?(): string;
8655
8655
  /**
8656
8656
  * Handle copy event on metadata editor and serialize properties.
8657
8657
  *
@@ -8677,7 +8677,7 @@ declare module "obsidian" {
8677
8677
  * @official
8678
8678
  * @deprecated - Added only for typing purposes. Use {@link onClose} instead.
8679
8679
  */
8680
- onClose__(): Promise<void>;
8680
+ onClose__?(): Promise<void>;
8681
8681
  /**
8682
8682
  * @deprecated use `onPaneMenu` instead
8683
8683
  * @unofficial
@@ -8690,7 +8690,7 @@ declare module "obsidian" {
8690
8690
  * @official
8691
8691
  * @deprecated - Added only for typing purposes. Use {@link onOpen} instead.
8692
8692
  */
8693
- onOpen__(): Promise<void>;
8693
+ onOpen__?(): Promise<void>;
8694
8694
  /**
8695
8695
  * Populates the pane menu.
8696
8696
  *
@@ -11757,7 +11757,7 @@ declare module "obsidian" {
11757
11757
  * @official
11758
11758
  * @deprecated - Added only for typing purposes. Use {@link getItems} instead.
11759
11759
  */
11760
- getItems__(): T[];
11760
+ getItems__?(): T[];
11761
11761
  /**
11762
11762
  * Get the text to be used in the fuzzy search.
11763
11763
  *
@@ -12878,7 +12878,7 @@ declare module "obsidian" {
12878
12878
  * @official
12879
12879
  * @deprecated - Added only for typing purposes. Use {@link file} instead.
12880
12880
  */
12881
- get file__(): TFile | null;
12881
+ file__?(): TFile | null;
12882
12882
  }
12883
12883
  }
12884
12884
  declare module "obsidian" {
@@ -12925,7 +12925,7 @@ declare module "obsidian" {
12925
12925
  * @official
12926
12926
  * @deprecated - Added only for typing purposes. Use {@link file} instead.
12927
12927
  */
12928
- get file__(): TFile;
12928
+ file__?(): TFile;
12929
12929
  /**
12930
12930
  * @todo Documentation incomplete.
12931
12931
  * @unofficial
@@ -13529,7 +13529,7 @@ declare module "obsidian" {
13529
13529
  * @official
13530
13530
  * @deprecated - Added only for typing purposes. Use {@link clear} instead.
13531
13531
  */
13532
- clear__(): void;
13532
+ clear__?(): void;
13533
13533
  /**
13534
13534
  * Create a new text file view.
13535
13535
  *
@@ -13544,7 +13544,7 @@ declare module "obsidian" {
13544
13544
  * @official
13545
13545
  * @deprecated - Added only for typing purposes. Use {@link getViewData} instead.
13546
13546
  */
13547
- getViewData__(): string;
13547
+ getViewData__?(): string;
13548
13548
  /**
13549
13549
  * @todo Documentation incomplete.
13550
13550
  * @unofficial
@@ -13798,7 +13798,7 @@ declare module "obsidian" {
13798
13798
  * @official
13799
13799
  * @deprecated - Added only for typing purposes. Use {@link file} instead.
13800
13800
  */
13801
- get file__(): TFile;
13801
+ file__?(): TFile;
13802
13802
  /**
13803
13803
  * Apply the scroll position to the edit view.
13804
13804
  *
@@ -15185,7 +15185,7 @@ declare module "obsidian" {
15185
15185
  * @official
15186
15186
  * @deprecated - Added only for typing purposes. Use {@link isDeferred} instead.
15187
15187
  */
15188
- get isDeferred__(): boolean;
15188
+ isDeferred__?(): boolean;
15189
15189
  /**
15190
15190
  * Detach this leaf from its parent.
15191
15191
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",
@@ -89,6 +89,9 @@
89
89
  "patch-package": "^8.0.0",
90
90
  "ts-morph": "^25.0.1"
91
91
  },
92
+ "peerDependencies": {
93
+ "typescript": ">=4.8.0"
94
+ },
92
95
  "overrides": {
93
96
  "boolean": "npm:dry-uninstall"
94
97
  },