Skip to content

Commit aa57ce8

Browse files
committed
Export MarkEdit as an object
1 parent da9d0eb commit aa57ce8

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ Add `markedit-api` to your (TypeScript) project's devDependencies:
1616
```json
1717
{
1818
"devDependencies": {
19-
"markedit-api": "https://github.com/MarkEdit-app/MarkEdit-api#v0.0.7"
19+
"markedit-api": "https://github.com/MarkEdit-app/MarkEdit-api#v0.0.8"
2020
}
2121
}
2222
```
2323

2424
Import types declarations with:
2525

2626
```ts
27-
import type {} from 'markedit-api';
27+
import { MarkEdit } from 'markedit-api';
2828
```
2929

30-
There is a global object called `MarkEdit` that provides these interfaces:
30+
The `MarkEdit` object provides these interfaces:
3131

3232
```ts
3333
interface MarkEdit {

markedit.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,5 @@ declare type TextRange = {
123123
from: number;
124124
to: number;
125125
};
126+
127+
export { MarkEdit, TextEditable, TextRange };

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markedit-api",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "Type definitions for the latest MakrEdit API.",
55
"main": "",
66
"types": "markedit.d.ts",

0 commit comments

Comments
 (0)