Skip to content

Commit 434b90c

Browse files
docs: include underlying TypeScript types into the Documentation (#74)
Co-authored-by: Aayush Kumar Sahu <[email protected]>
1 parent 2f9da97 commit 434b90c

File tree

8 files changed

+203
-1503
lines changed

8 files changed

+203
-1503
lines changed

Diff for: API.md

-76
This file was deleted.

Diff for: README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- [Installation](#installation)
1919
- [Usage](#usage)
2020
- [Standard object](#standard-object)
21-
- [Overriding the standard](#overriding-the-standard)
21+
* [Overriding the standard](#overriding-the-standard)
2222
- [Example](#example)
2323
- [API](#api)
2424
- [Develop](#develop)
@@ -37,7 +37,7 @@ npm install @asyncapi/diff
3737
**NOTE:** The library doesn't have a built-in parser to parse the given AsyncAPI document. Thus, you have to make sure they provide the valid & dereferenced AsyncAPI document as an input. You can use the [AsyncAPI parser](https://github.com/asyncapi/parser-js) to parse and validate the AsyncAPI file first. You can use other tools, but you **must** make sure that the document is valid and dereferenced.
3838

3939
```js
40-
import { diff } from '@asyncapi/diff'; // const { diff } = require('@asyncapi/diff');
40+
import { diff } from "@asyncapi/diff"; // const { diff } = require('@asyncapi/diff');
4141

4242
const output = diff(firstDocument, secondDocument, {
4343
overrides: {
@@ -70,7 +70,7 @@ The overrides object must be passed in the following format:
7070

7171
## Example
7272

73-
See the [API](API.md) document to get all the helper methods this library offers.
73+
See the [index](./docs/modules/index.md) document to get all the helper methods this library offers.
7474

7575
1. Without any overrides
7676

@@ -88,18 +88,18 @@ output.unclassified(); // the unclassified changes
8888
```js
8989
const output = diff(firstDocument, secondDocument, {
9090
overrides: {
91-
'/servers/*/protocol': {
92-
add: 'non-breaking',
93-
remove: 'breaking',
94-
edit: 'unclassified',
91+
"/servers/*/protocol": {
92+
add: "non-breaking",
93+
remove: "breaking",
94+
edit: "unclassified",
9595
},
9696
},
9797
});
9898
```
9999

100100
## API
101101

102-
Checkout the [API](API.md) document to see all the APIs this library offers.
102+
Checkout the [index](./docs/modules/index.md) document to see all the APIs this library offers.
103103

104104
## Develop
105105

0 commit comments

Comments
 (0)