obsidian-typings 4.34.0 → 4.35.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.
@@ -5429,19 +5429,6 @@ export interface GetRecentFilesOptions {
5429
5429
  /** @todo Documentation incomplete. */
5430
5430
  showNonImageAttachments: boolean;
5431
5431
  }
5432
- /**
5433
- * @todo Documentation incomplete.
5434
- * @public
5435
- * @unofficial
5436
- */
5437
- export interface GetTypeInfoOptions {
5438
- /** @todo Documentation incomplete. */
5439
- key: string;
5440
- /** @todo Documentation incomplete. */
5441
- type: string;
5442
- /** @todo Documentation incomplete. */
5443
- value: unknown;
5444
- }
5445
5432
  /**
5446
5433
  * @todo Documentation incomplete.
5447
5434
  * @public
@@ -7770,7 +7757,7 @@ export interface MetadataTypeManager extends Events {
7770
7757
  /**
7771
7758
  * Get expected widget type for property and the one inferred from the property value.
7772
7759
  */
7773
- getTypeInfo(options: GetTypeInfoOptions): TypeInfo;
7760
+ getTypeInfo(property: string, value: unknown): TypeInfo;
7774
7761
  /**
7775
7762
  * Get property widget.
7776
7763
  */
@@ -21634,19 +21634,6 @@ export interface GetRecentFilesOptions {
21634
21634
  /** @todo Documentation incomplete. */
21635
21635
  showNonImageAttachments: boolean;
21636
21636
  }
21637
- /**
21638
- * @todo Documentation incomplete.
21639
- * @public
21640
- * @unofficial
21641
- */
21642
- export interface GetTypeInfoOptions {
21643
- /** @todo Documentation incomplete. */
21644
- key: string;
21645
- /** @todo Documentation incomplete. */
21646
- type: string;
21647
- /** @todo Documentation incomplete. */
21648
- value: unknown;
21649
- }
21650
21637
  /**
21651
21638
  * @todo Documentation incomplete.
21652
21639
  * @public
@@ -23975,7 +23962,7 @@ export interface MetadataTypeManager extends Events {
23975
23962
  /**
23976
23963
  * Get expected widget type for property and the one inferred from the property value.
23977
23964
  */
23978
- getTypeInfo(options: GetTypeInfoOptions): TypeInfo;
23965
+ getTypeInfo(property: string, value: unknown): TypeInfo;
23979
23966
  /**
23980
23967
  * Get property widget.
23981
23968
  */
@@ -61134,105 +61134,6 @@
61134
61134
  "parameters": [],
61135
61135
  "name": "getTFolderConstructor"
61136
61136
  },
61137
- {
61138
- "kind": "Interface",
61139
- "canonicalReference": "obsidian-typings!GetTypeInfoOptions:interface",
61140
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n *\n * @unofficial\n *\n * @public\n */\n",
61141
- "excerptTokens": [
61142
- {
61143
- "kind": "Content",
61144
- "text": "export interface GetTypeInfoOptions "
61145
- }
61146
- ],
61147
- "fileUrlPath": "src/obsidian/internals/MetadataTypeManager/GetTypeInfoOptions.d.ts",
61148
- "releaseTag": "Public",
61149
- "name": "GetTypeInfoOptions",
61150
- "preserveMemberOrder": false,
61151
- "members": [
61152
- {
61153
- "kind": "PropertySignature",
61154
- "canonicalReference": "obsidian-typings!GetTypeInfoOptions#key:member",
61155
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
61156
- "excerptTokens": [
61157
- {
61158
- "kind": "Content",
61159
- "text": "key: "
61160
- },
61161
- {
61162
- "kind": "Content",
61163
- "text": "string"
61164
- },
61165
- {
61166
- "kind": "Content",
61167
- "text": ";"
61168
- }
61169
- ],
61170
- "isReadonly": false,
61171
- "isOptional": false,
61172
- "releaseTag": "Public",
61173
- "name": "key",
61174
- "propertyTypeTokenRange": {
61175
- "startIndex": 1,
61176
- "endIndex": 2
61177
- }
61178
- },
61179
- {
61180
- "kind": "PropertySignature",
61181
- "canonicalReference": "obsidian-typings!GetTypeInfoOptions#type:member",
61182
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
61183
- "excerptTokens": [
61184
- {
61185
- "kind": "Content",
61186
- "text": "type: "
61187
- },
61188
- {
61189
- "kind": "Content",
61190
- "text": "string"
61191
- },
61192
- {
61193
- "kind": "Content",
61194
- "text": ";"
61195
- }
61196
- ],
61197
- "isReadonly": false,
61198
- "isOptional": false,
61199
- "releaseTag": "Public",
61200
- "name": "type",
61201
- "propertyTypeTokenRange": {
61202
- "startIndex": 1,
61203
- "endIndex": 2
61204
- }
61205
- },
61206
- {
61207
- "kind": "PropertySignature",
61208
- "canonicalReference": "obsidian-typings!GetTypeInfoOptions#value:member",
61209
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
61210
- "excerptTokens": [
61211
- {
61212
- "kind": "Content",
61213
- "text": "value: "
61214
- },
61215
- {
61216
- "kind": "Content",
61217
- "text": "unknown"
61218
- },
61219
- {
61220
- "kind": "Content",
61221
- "text": ";"
61222
- }
61223
- ],
61224
- "isReadonly": false,
61225
- "isOptional": false,
61226
- "releaseTag": "Public",
61227
- "name": "value",
61228
- "propertyTypeTokenRange": {
61229
- "startIndex": 1,
61230
- "endIndex": 2
61231
- }
61232
- }
61233
- ],
61234
- "extendsTokenRanges": []
61235
- },
61236
61137
  {
61237
61138
  "kind": "Function",
61238
61139
  "canonicalReference": "obsidian-typings!getViewConstructorByViewType:function(1)",
@@ -86062,12 +85963,19 @@
86062
85963
  "excerptTokens": [
86063
85964
  {
86064
85965
  "kind": "Content",
86065
- "text": "getTypeInfo(options: "
85966
+ "text": "getTypeInfo(property: "
86066
85967
  },
86067
85968
  {
86068
- "kind": "Reference",
86069
- "text": "GetTypeInfoOptions",
86070
- "canonicalReference": "obsidian-typings!GetTypeInfoOptions:interface"
85969
+ "kind": "Content",
85970
+ "text": "string"
85971
+ },
85972
+ {
85973
+ "kind": "Content",
85974
+ "text": ", value: "
85975
+ },
85976
+ {
85977
+ "kind": "Content",
85978
+ "text": "unknown"
86071
85979
  },
86072
85980
  {
86073
85981
  "kind": "Content",
@@ -86085,19 +85993,27 @@
86085
85993
  ],
86086
85994
  "isOptional": false,
86087
85995
  "returnTypeTokenRange": {
86088
- "startIndex": 3,
86089
- "endIndex": 4
85996
+ "startIndex": 5,
85997
+ "endIndex": 6
86090
85998
  },
86091
85999
  "releaseTag": "Public",
86092
86000
  "overloadIndex": 1,
86093
86001
  "parameters": [
86094
86002
  {
86095
- "parameterName": "options",
86003
+ "parameterName": "property",
86096
86004
  "parameterTypeTokenRange": {
86097
86005
  "startIndex": 1,
86098
86006
  "endIndex": 2
86099
86007
  },
86100
86008
  "isOptional": false
86009
+ },
86010
+ {
86011
+ "parameterName": "value",
86012
+ "parameterTypeTokenRange": {
86013
+ "startIndex": 3,
86014
+ "endIndex": 4
86015
+ },
86016
+ "isOptional": false
86101
86017
  }
86102
86018
  ],
86103
86019
  "name": "getTypeInfo"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "4.34.0",
3
+ "version": "4.35.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",