Skip to content

Commit 47057eb

Browse files
authored
Merge pull request #215 from AdobeXD/xd-25-apis
Xd 25 apis
2 parents 2c904e0 + 0c4215c commit 47057eb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

reference/application.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The `application` module exposes APIs for exporting content, initiating edits fr
1010
* [.version](#module_application-version) : <code>string</code>
1111
* [.appLanguage](#module_application-appLanguage) : <code>string</code>
1212
* [.systemLocale](#module_application-systemLocale) : <code>string</code>
13-
* [.activeDocument](#module_application-activeDocument) : <code>string</code>
13+
* [.activeDocument](#module_application-activeDocument) : <code>DocumentInfo</code>
1414

1515

1616
---
@@ -184,13 +184,20 @@ console.log("OS locale:", application.systemLocale); // e.g. "en_US"
184184

185185
<a name="module_application-activeDocument"></a>
186186

187-
### *application.activeDocument : <code>string</code>*
187+
### *application.activeDocument : <code>DocumentInfo</code>*
188188

189189
Represents the active document. Provides the document guid and current saved name.
190190

191191
**Kind**: static property of [<code>application</code>](#module_application)
192192
**Read only**: true
193193

194+
**Typedef DocumentInfo**
195+
196+
| Property | Type | Description |
197+
| ---------- | ----------------- | ---------------------------------------------------|
198+
| name | string | Document name as displayed in the document window. |
199+
| guid | string | Unique document identifier that does not change. |
200+
194201
**Example**
195202
```js
196203
var application = require("application");

0 commit comments

Comments
 (0)