Skip to content

Commit

Permalink
docs: Update types and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldoppea committed Jul 22, 2024
1 parent 11c2d88 commit b8abde2
Show file tree
Hide file tree
Showing 9 changed files with 320 additions and 147 deletions.
184 changes: 92 additions & 92 deletions docs/api/cozy-client/classes/CozyClient.md

Large diffs are not rendered by default.

27 changes: 25 additions & 2 deletions docs/api/cozy-client/classes/CozyLink.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,43 @@

### constructor

**new CozyLink**(`requestHandler`)
**new CozyLink**(`requestHandler`, `persistHandler`)

*Parameters*

| Name | Type |
| :------ | :------ |
| `requestHandler` | `any` |
| `persistHandler` | `any` |

*Defined in*

[packages/cozy-client/src/CozyLink.js:2](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/CozyLink.js#L2)

## Methods

### persistData

**persistData**(`definition`, `data`, `forward`): `void`

*Parameters*

| Name | Type |
| :------ | :------ |
| `definition` | `any` |
| `data` | `any` |
| `forward` | `any` |

*Returns*

`void`

*Defined in*

[packages/cozy-client/src/CozyLink.js:16](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/CozyLink.js#L16)

***

### request

**request**(`operation`, `result`, `forward`): `void`
Expand All @@ -44,4 +67,4 @@

*Defined in*

[packages/cozy-client/src/CozyLink.js:8](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/CozyLink.js#L8)
[packages/cozy-client/src/CozyLink.js:12](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/CozyLink.js#L12)
29 changes: 27 additions & 2 deletions docs/api/cozy-client/classes/StackLink.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Transfers queries and mutations to a remote stack

*Defined in*

[packages/cozy-client/src/StackLink.js:114](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/StackLink.js#L114)
[packages/cozy-client/src/StackLink.js:118](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/StackLink.js#L118)

***

Expand All @@ -82,7 +82,32 @@ Transfers queries and mutations to a remote stack

*Defined in*

[packages/cozy-client/src/StackLink.js:91](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/StackLink.js#L91)
[packages/cozy-client/src/StackLink.js:95](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/StackLink.js#L95)

***

### persistData

**persistData**(`data`, `forward`): `Promise`<`any`>

*Parameters*

| Name | Type |
| :------ | :------ |
| `data` | `any` |
| `forward` | `any` |

*Returns*

`Promise`<`any`>

*Overrides*

[CozyLink](CozyLink.md).[persistData](CozyLink.md#persistdata)

*Defined in*

[packages/cozy-client/src/StackLink.js:87](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/StackLink.js#L87)

***

Expand Down
Loading

0 comments on commit b8abde2

Please sign in to comment.