@@ -9,132 +9,111 @@ title: "API"
99
1010### new API(app, plugin, instanceId)
1111
12- ``` ts
13- new API (
14- app ,
15- plugin ,
16- instanceId ): API
17- ```
12+ > ** new API** (` app ` , ` plugin ` , ` instanceId ` ): [ ` API ` ] ( /obsidian-js-engine-plugin-docs/api/classes/api/ )
1813
1914#### Parameters
2015
2116| Parameter | Type |
2217| :------ | :------ |
2318| ` app ` | ` App ` |
2419| ` plugin ` | ` default ` |
25- | ` instanceId ` | [ ` InstanceId ` ] ( InstanceId.md ) |
20+ | ` instanceId ` | [ ` InstanceId ` ] ( /obsidian-js-engine-plugin-docs/api/classes/instanceid/ ) |
2621
2722#### Returns
2823
29- [ ` API ` ] ( API.md )
24+ [ ` API ` ] ( /obsidian-js-engine-plugin-docs/api/classes/api/ )
3025
3126#### Source
3227
33- [ jsEngine/api/API.ts:38] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L38 )
28+ [ jsEngine/api/API.ts:38] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L38 )
3429
3530## Properties
3631
3732### app
3833
39- ``` ts
40- readonly app : App ;
41- ```
34+ > ** ` readonly ` ** ** app** : ` App `
4235
4336Reference to the obsidian app.
4437
4538#### Source
4639
47- [ jsEngine/api/API.ts:15] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L15 )
40+ [ jsEngine/api/API.ts:15] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L15 )
4841
4942***
5043
5144### instanceId
5245
53- ``` ts
54- readonly instanceId : InstanceId ;
55- ```
46+ > ** ` readonly ` ** ** instanceId** : [ ` InstanceId ` ] ( /obsidian-js-engine-plugin-docs/api/classes/instanceid/ )
5647
5748#### Source
5849
59- [ jsEngine/api/API.ts:20] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L20 )
50+ [ jsEngine/api/API.ts:20] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L20 )
6051
6152***
6253
6354### internal
6455
65- ``` ts
66- readonly internal : InternalAPI ;
67- ```
56+ > ** ` readonly ` ** ** internal** : [ ` InternalAPI ` ] ( /obsidian-js-engine-plugin-docs/api/classes/internalapi/ )
6857
6958API to interact with js engines internals.
7059
7160#### Source
7261
73- [ jsEngine/api/API.ts:36] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L36 )
62+ [ jsEngine/api/API.ts:36] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L36 )
7463
7564***
7665
7766### lib
7867
79- ``` ts
80- readonly lib : LibAPI ;
81- ```
68+ > ** ` readonly ` ** ** lib** : [ ` LibAPI ` ] ( /obsidian-js-engine-plugin-docs/api/classes/libapi/ )
8269
8370API to interact with packaged libraries.
8471
8572#### Source
8673
87- [ jsEngine/api/API.ts:32] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L32 )
74+ [ jsEngine/api/API.ts:32] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L32 )
8875
8976***
9077
9178### markdown
9279
93- ``` ts
94- readonly markdown : MarkdownAPI ;
95- ```
80+ > ** ` readonly ` ** ** markdown** : [ ` MarkdownAPI ` ] ( /obsidian-js-engine-plugin-docs/api/classes/markdownapi/ )
9681
9782API to interact with markdown.
9883
9984#### Source
10085
101- [ jsEngine/api/API.ts:24] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L24 )
86+ [ jsEngine/api/API.ts:24] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L24 )
10287
10388***
10489
10590### message
10691
107- ``` ts
108- readonly message : MessageAPI ;
109- ```
92+ > ** ` readonly ` ** ** message** : [ ` MessageAPI ` ] ( /obsidian-js-engine-plugin-docs/api/classes/messageapi/ )
11093
11194API to interact with the plugins message system.
11295
11396#### Source
11497
115- [ jsEngine/api/API.ts:28] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L28 )
98+ [ jsEngine/api/API.ts:28] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L28 )
11699
117100***
118101
119102### plugin
120103
121- ``` ts
122- readonly plugin : default ;
123- ```
104+ > ** ` readonly ` ** ** plugin** : ` default `
124105
125106Reference the JS Engine plugin.
126107
127108#### Source
128109
129- [ jsEngine/api/API.ts:19] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L19 )
110+ [ jsEngine/api/API.ts:19] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L19 )
130111
131112## Methods
132113
133114### getPlugin()
134115
135- ``` ts
136- getPlugin (pluginId ): Plugin
137- ```
116+ > ** getPlugin** (` pluginId ` ): ` Plugin `
138117
139118Gets a plugin by its id. A plugin id can be found by looking at its manifest.
140119
@@ -150,15 +129,13 @@ Gets a plugin by its id. A plugin id can be found by looking at its manifest.
150129
151130#### Source
152131
153- [ jsEngine/api/API.ts:70] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L70 )
132+ [ jsEngine/api/API.ts:70] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L70 )
154133
155134***
156135
157136### importJs()
158137
159- ``` ts
160- importJs (path ): Promise < unknown >
161- ```
138+ > ** importJs** (` path ` ): [ ` Promise ` ] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise ) \< ` unknown ` \>
162139
163140Loads an ECMAScript module from a vault relative path.
164141
@@ -174,15 +151,13 @@ Loads an ECMAScript module from a vault relative path.
174151
175152#### Source
176153
177- [ jsEngine/api/API.ts:54] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L54 )
154+ [ jsEngine/api/API.ts:54] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L54 )
178155
179156***
180157
181158### reactive()
182159
183- ``` ts
184- reactive (fn , ... initialArgs ): ReactiveComponent
185- ```
160+ > ** reactive** (` fn ` , ...` initialArgs ` ): [ ` ReactiveComponent ` ] ( /obsidian-js-engine-plugin-docs/api/classes/reactivecomponent/ )
186161
187162Creates a reactive component.
188163Reactive components are useful for creating dynamic content.
@@ -191,13 +166,13 @@ Reactive components are useful for creating dynamic content.
191166
192167| Parameter | Type | Description |
193168| :------ | :------ | :------ |
194- | ` fn ` | [ ` JsFunc ` ] ( ../ type-aliases/JsFunc.md ) | the function to rerun. It's return value will be rendered. |
169+ | ` fn ` | [ ` JsFunc ` ] ( /obsidian-js-engine-plugin-docs/api/ type-aliases/jsfunc/ ) | the function to rerun. It's return value will be rendered. |
195170| ...` initialArgs ` | ` unknown ` [ ] | the initial arguments (for the first render) to pass to the function. |
196171
197172#### Returns
198173
199- [ ` ReactiveComponent ` ] ( ReactiveComponent.md )
174+ [ ` ReactiveComponent ` ] ( /obsidian-js-engine-plugin-docs/api/classes/reactivecomponent/ )
200175
201176#### Source
202177
203- [ jsEngine/api/API.ts:81] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/ed3359bafa6ca5667a1f852b3d8e87476c86ce23 /jsEngine/api/API.ts#L81 )
178+ [ jsEngine/api/API.ts:81] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/9978dd39a18406d0dee0b76dd4311dc0c6857428 /jsEngine/api/API.ts#L81 )
0 commit comments