obsidian-typings 4.46.0 → 4.48.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.
@@ -2404,7 +2404,7 @@ export interface BookmarkItem {
2404
2404
  /**
2405
2405
  * The items of the bookmark item.
2406
2406
  */
2407
- items: BookmarkItem[];
2407
+ items?: BookmarkItem[];
2408
2408
  /**
2409
2409
  * The path of the bookmark item.
2410
2410
  */
@@ -3831,7 +3831,7 @@ export interface ClipboardManager {
3831
3831
  /**
3832
3832
  * Insert files from drop-event into the editor.
3833
3833
  */
3834
- insertFiles(files: ImportedAttachments[]): Promise<void>;
3834
+ insertFiles(importedAttachments: ImportedAttachment[]): Promise<void>;
3835
3835
  /**
3836
3836
  * Save an attachment of specified name and extension to the vault.
3837
3837
  *
@@ -7274,18 +7274,19 @@ export interface ImageView extends EditableFileView {
7274
7274
  export interface ImageViewConstructor extends TypedViewConstructor<ImageView> {
7275
7275
  }
7276
7276
  /**
7277
- * @todo Documentation incomplete.
7277
+ * Imported attachment.
7278
+ *
7278
7279
  * @public
7279
7280
  * @unofficial
7280
7281
  */
7281
- export interface ImportedAttachments {
7282
- /** @todo Documentation incomplete. */
7282
+ export interface ImportedAttachment {
7283
+ /** Promise that resolves to the attachment file content. */
7283
7284
  data: Promise<ArrayBuffer>;
7284
- /** @todo Documentation incomplete. */
7285
+ /** An attachment file extension. */
7285
7286
  extension: string;
7286
- /** @todo Documentation incomplete. */
7287
- filename: string;
7288
- /** @todo Documentation incomplete. */
7287
+ /** An attachment file path. */
7288
+ filepath: string;
7289
+ /** An attachment file name. */
7289
7290
  name: string;
7290
7291
  }
7291
7292
  /**
@@ -13223,9 +13223,12 @@ declare module "obsidian" {
13223
13223
  /**
13224
13224
  * Import attachments into specified folder.
13225
13225
  *
13226
+ * @param attachmentsToImport - The attachments to import.
13227
+ * @param folder - The folder to import the attachments to.
13228
+ *
13226
13229
  * @unofficial
13227
13230
  */
13228
- importAttachments(imports: ImportedAttachments[], folder: TFolder | null): Promise<void>;
13231
+ importAttachments(attachmentsToImport: ImportedAttachment[], folder: TFolder | null): Promise<void>;
13229
13232
  /**
13230
13233
  * Initialize the entire application using the provided FS adapter
13231
13234
  *
@@ -18612,7 +18615,7 @@ export interface BookmarkItem {
18612
18615
  /**
18613
18616
  * The items of the bookmark item.
18614
18617
  */
18615
- items: BookmarkItem[];
18618
+ items?: BookmarkItem[];
18616
18619
  /**
18617
18620
  * The path of the bookmark item.
18618
18621
  */
@@ -20039,7 +20042,7 @@ export interface ClipboardManager {
20039
20042
  /**
20040
20043
  * Insert files from drop-event into the editor.
20041
20044
  */
20042
- insertFiles(files: ImportedAttachments[]): Promise<void>;
20045
+ insertFiles(importedAttachments: ImportedAttachment[]): Promise<void>;
20043
20046
  /**
20044
20047
  * Save an attachment of specified name and extension to the vault.
20045
20048
  *
@@ -23482,18 +23485,19 @@ export interface ImageView extends EditableFileView {
23482
23485
  export interface ImageViewConstructor extends TypedViewConstructor<ImageView> {
23483
23486
  }
23484
23487
  /**
23485
- * @todo Documentation incomplete.
23488
+ * Imported attachment.
23489
+ *
23486
23490
  * @public
23487
23491
  * @unofficial
23488
23492
  */
23489
- export interface ImportedAttachments {
23490
- /** @todo Documentation incomplete. */
23493
+ export interface ImportedAttachment {
23494
+ /** Promise that resolves to the attachment file content. */
23491
23495
  data: Promise<ArrayBuffer>;
23492
- /** @todo Documentation incomplete. */
23496
+ /** An attachment file extension. */
23493
23497
  extension: string;
23494
- /** @todo Documentation incomplete. */
23495
- filename: string;
23496
- /** @todo Documentation incomplete. */
23498
+ /** An attachment file path. */
23499
+ filepath: string;
23500
+ /** An attachment file name. */
23497
23501
  name: string;
23498
23502
  }
23499
23503
  /**
@@ -16672,7 +16672,7 @@
16672
16672
  "excerptTokens": [
16673
16673
  {
16674
16674
  "kind": "Content",
16675
- "text": "items: "
16675
+ "text": "items?: "
16676
16676
  },
16677
16677
  {
16678
16678
  "kind": "Reference",
@@ -16689,7 +16689,7 @@
16689
16689
  }
16690
16690
  ],
16691
16691
  "isReadonly": false,
16692
- "isOptional": false,
16692
+ "isOptional": true,
16693
16693
  "releaseTag": "Public",
16694
16694
  "name": "items",
16695
16695
  "propertyTypeTokenRange": {
@@ -37617,12 +37617,12 @@
37617
37617
  "excerptTokens": [
37618
37618
  {
37619
37619
  "kind": "Content",
37620
- "text": "insertFiles(files: "
37620
+ "text": "insertFiles(importedAttachments: "
37621
37621
  },
37622
37622
  {
37623
37623
  "kind": "Reference",
37624
- "text": "ImportedAttachments",
37625
- "canonicalReference": "obsidian-typings!ImportedAttachments:interface"
37624
+ "text": "ImportedAttachment",
37625
+ "canonicalReference": "obsidian-typings!ImportedAttachment:interface"
37626
37626
  },
37627
37627
  {
37628
37628
  "kind": "Content",
@@ -37655,7 +37655,7 @@
37655
37655
  "overloadIndex": 1,
37656
37656
  "parameters": [
37657
37657
  {
37658
- "parameterName": "files",
37658
+ "parameterName": "importedAttachments",
37659
37659
  "parameterTypeTokenRange": {
37660
37660
  "startIndex": 1,
37661
37661
  "endIndex": 3
@@ -76104,23 +76104,23 @@
76104
76104
  },
76105
76105
  {
76106
76106
  "kind": "Interface",
76107
- "canonicalReference": "obsidian-typings!ImportedAttachments:interface",
76108
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n *\n * @unofficial\n *\n * @public\n */\n",
76107
+ "canonicalReference": "obsidian-typings!ImportedAttachment:interface",
76108
+ "docComment": "/**\n * Imported attachment.\n *\n * @unofficial\n *\n * @public\n */\n",
76109
76109
  "excerptTokens": [
76110
76110
  {
76111
76111
  "kind": "Content",
76112
- "text": "export interface ImportedAttachments "
76112
+ "text": "export interface ImportedAttachment "
76113
76113
  }
76114
76114
  ],
76115
- "fileUrlPath": "src/obsidian/internals/ImportedAttachments.d.ts",
76115
+ "fileUrlPath": "src/obsidian/internals/ImportedAttachment.d.ts",
76116
76116
  "releaseTag": "Public",
76117
- "name": "ImportedAttachments",
76117
+ "name": "ImportedAttachment",
76118
76118
  "preserveMemberOrder": false,
76119
76119
  "members": [
76120
76120
  {
76121
76121
  "kind": "PropertySignature",
76122
- "canonicalReference": "obsidian-typings!ImportedAttachments#data:member",
76123
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
76122
+ "canonicalReference": "obsidian-typings!ImportedAttachment#data:member",
76123
+ "docComment": "/**\n * Promise that resolves to the attachment file content.\n */\n",
76124
76124
  "excerptTokens": [
76125
76125
  {
76126
76126
  "kind": "Content",
@@ -76160,8 +76160,8 @@
76160
76160
  },
76161
76161
  {
76162
76162
  "kind": "PropertySignature",
76163
- "canonicalReference": "obsidian-typings!ImportedAttachments#extension:member",
76164
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
76163
+ "canonicalReference": "obsidian-typings!ImportedAttachment#extension:member",
76164
+ "docComment": "/**\n * An attachment file extension.\n */\n",
76165
76165
  "excerptTokens": [
76166
76166
  {
76167
76167
  "kind": "Content",
@@ -76187,12 +76187,12 @@
76187
76187
  },
76188
76188
  {
76189
76189
  "kind": "PropertySignature",
76190
- "canonicalReference": "obsidian-typings!ImportedAttachments#filename:member",
76191
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
76190
+ "canonicalReference": "obsidian-typings!ImportedAttachment#filepath:member",
76191
+ "docComment": "/**\n * An attachment file path.\n */\n",
76192
76192
  "excerptTokens": [
76193
76193
  {
76194
76194
  "kind": "Content",
76195
- "text": "filename: "
76195
+ "text": "filepath: "
76196
76196
  },
76197
76197
  {
76198
76198
  "kind": "Content",
@@ -76206,7 +76206,7 @@
76206
76206
  "isReadonly": false,
76207
76207
  "isOptional": false,
76208
76208
  "releaseTag": "Public",
76209
- "name": "filename",
76209
+ "name": "filepath",
76210
76210
  "propertyTypeTokenRange": {
76211
76211
  "startIndex": 1,
76212
76212
  "endIndex": 2
@@ -76214,8 +76214,8 @@
76214
76214
  },
76215
76215
  {
76216
76216
  "kind": "PropertySignature",
76217
- "canonicalReference": "obsidian-typings!ImportedAttachments#name:member",
76218
- "docComment": "/**\n * @todo\n *\n * Documentation incomplete.\n */\n",
76217
+ "canonicalReference": "obsidian-typings!ImportedAttachment#name:member",
76218
+ "docComment": "/**\n * An attachment file name.\n */\n",
76219
76219
  "excerptTokens": [
76220
76220
  {
76221
76221
  "kind": "Content",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "4.46.0",
3
+ "version": "4.48.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",