-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from obsidianmd/7992202596
Auto-generate docs for obsidian.d.ts
- Loading branch information
Showing
67 changed files
with
527 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
en/Reference/TypeScript API/AbstractInputSuggest/getSuggestions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
aliases: "obsidian.AbstractInputSuggest.getSuggestions.md" | ||
cssclasses: hide-title | ||
--- | ||
|
||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[`AbstractInputSuggest`](obsidian.AbstractInputSuggest.md) › [`getSuggestions`](obsidian.AbstractInputSuggest.getSuggestions.md) | ||
|
||
## AbstractInputSuggest.getSuggestions() method | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
protected abstract getSuggestions(query: string): T[] | Promise<T[]>; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| <code>query</code> | <code>string</code> | | | ||
|
||
**Returns:** | ||
|
||
`T[] | ``Promise``<T[]>` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
en/Reference/TypeScript API/FileManager/getAvailablePathForAttachment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
aliases: "obsidian.FileManager.getAvailablePathForAttachment.md" | ||
cssclasses: hide-title | ||
--- | ||
|
||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[`FileManager`](obsidian.FileManager.md) › [`getAvailablePathForAttachment`](obsidian.FileManager.getAvailablePathForAttachment.md) | ||
|
||
## FileManager.getAvailablePathForAttachment() method | ||
|
||
Resolves a unique path for the attachment file being saved. Ensures that the parent directory exists and dedupes the filename if the destination filename already exists. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getAvailablePathForAttachment(filename: string, sourcePath?: string): Promise<string>; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| <code>filename</code> | <code>string</code> | Name of the attachment being saved | | ||
| <code>sourcePath</code> | <code>string</code> | _(Optional)_ The path to the note associated with this attachment, defaults to the workspace's active file. | | ||
|
||
**Returns:** | ||
|
||
`Promise``<string>` | ||
|
||
Full path for where the attachment should be saved, according to the user's settings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
aliases: "obsidian.FrontMatterInfo.md" | ||
cssclasses: hide-title | ||
--- | ||
|
||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[`FrontMatterInfo`](obsidian.FrontMatterInfo.md) | ||
|
||
## FrontMatterInfo interface | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
export interface FrontMatterInfo | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Modifiers | Type | Description | | ||
| --- | --- | --- | --- | | ||
| [`contentStart`](obsidian.FrontMatterInfo.contentStart.md) | | <code>number</code> | Offset where the frontmatter block ends (including the \-\-\-) | | ||
| [`exists`](obsidian.FrontMatterInfo.exists.md) | | <code>boolean</code> | Whether this file has a frontmatter block | | ||
| [`from`](obsidian.FrontMatterInfo.from.md) | | <code>number</code> | Start of the frontmatter contents (excluding the \-\-\-) | | ||
| [`frontmatter`](obsidian.FrontMatterInfo.frontmatter.md) | | <code>string</code> | String representation of the frontmatter | | ||
| [`to`](obsidian.FrontMatterInfo.to.md) | | <code>number</code> | End of the frontmatter contents (excluding the \-\-\-) | | ||
|
18 changes: 18 additions & 0 deletions
18
en/Reference/TypeScript API/FrontMatterInfo/contentStart.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
aliases: "obsidian.FrontMatterInfo.contentStart.md" | ||
cssclasses: hide-title | ||
--- | ||
|
||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[`FrontMatterInfo`](obsidian.FrontMatterInfo.md) › [`contentStart`](obsidian.FrontMatterInfo.contentStart.md) | ||
|
||
## FrontMatterInfo.contentStart property | ||
|
||
Offset where the frontmatter block ends (including the \-\-\-) | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
contentStart: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
aliases: "obsidian.FrontMatterInfo.exists.md" | ||
cssclasses: hide-title | ||
--- | ||
|
||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[`FrontMatterInfo`](obsidian.FrontMatterInfo.md) › [`exists`](obsidian.FrontMatterInfo.exists.md) | ||
|
||
## FrontMatterInfo.exists property | ||
|
||
Whether this file has a frontmatter block | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
exists: boolean; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
aliases: "obsidian.FrontMatterInfo.from.md" | ||
cssclasses: hide-title | ||
--- | ||
|
||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[`FrontMatterInfo`](obsidian.FrontMatterInfo.md) › [`from`](obsidian.FrontMatterInfo.from.md) | ||
|
||
## FrontMatterInfo.from property | ||
|
||
Start of the frontmatter contents (excluding the \-\-\-) | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
from: number; | ||
``` |
18 changes: 18 additions & 0 deletions
18
en/Reference/TypeScript API/FrontMatterInfo/frontmatter.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
aliases: "obsidian.FrontMatterInfo.frontmatter.md" | ||
cssclasses: hide-title | ||
--- | ||
|
||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[`FrontMatterInfo`](obsidian.FrontMatterInfo.md) › [`frontmatter`](obsidian.FrontMatterInfo.frontmatter.md) | ||
|
||
## FrontMatterInfo.frontmatter property | ||
|
||
String representation of the frontmatter | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
frontmatter: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
aliases: "obsidian.FrontMatterInfo.to.md" | ||
cssclasses: hide-title | ||
--- | ||
|
||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[`FrontMatterInfo`](obsidian.FrontMatterInfo.md) › [`to`](obsidian.FrontMatterInfo.to.md) | ||
|
||
## FrontMatterInfo.to property | ||
|
||
End of the frontmatter contents (excluding the \-\-\-) | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
to: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.