-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update types and documentation
- Loading branch information
Showing
8 changed files
with
86 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
export default class CozyLink { | ||
constructor(requestHandler: any, persistHandler: any); | ||
request(operation: any, result: any, forward: any): void; | ||
persistCozyData(data: any, forward: any): void; | ||
/** | ||
* Request the given operation from the link | ||
* | ||
* @param {any} operation - The operation to request | ||
* @param {any} result - The result from the previous request of the chain | ||
* @param {any} forward - The next request of the chain | ||
* @returns {Promise<any>} | ||
*/ | ||
request(operation: any, result: any, forward: any): Promise<any>; | ||
/** | ||
* Persist the given data into the links storage | ||
* | ||
* @param {any} data - The document to persist | ||
* @param {any} forward - The next persistCozyData of the chain | ||
* @returns {Promise<any>} | ||
*/ | ||
persistCozyData(data: any, forward: any): Promise<any>; | ||
/** | ||
* Reset the link data | ||
* | ||
* @returns {Promise<any>} | ||
*/ | ||
reset(): Promise<any>; | ||
} | ||
export function chain(links: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters