-
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
7 changed files
with
75 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
export const DATABASE_NOT_FOUND_ERROR: "Database does not exist"; | ||
export const DATABASE_RESERVED_DOCTYPE_ERROR: "Reserved doctype"; | ||
export function isDatabaseNotFoundError(error: any): boolean; | ||
export function isDatabaseUnradableError(error: any): boolean; | ||
export function fetchRemoteInstance(url: URL, params?: object): Promise<object>; | ||
export function fetchRemoteLastSequence(baseUrl: string): Promise<string>; |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export function replicateOnce(pouchManager: import('./PouchManager').default): Promise<any>; | ||
export type FulfilledPromise = { | ||
/** | ||
* - The status of the promise | ||
*/ | ||
status: 'fulfilled'; | ||
/** | ||
* - The Error rejected by the promise (undefined when fulfilled) | ||
*/ | ||
reason: undefined; | ||
/** | ||
* - The resolved value of the promise | ||
*/ | ||
value: any; | ||
}; | ||
export type RejectedPromise = { | ||
/** | ||
* - The status of the promise | ||
*/ | ||
status: 'rejected'; | ||
/** | ||
* - The Error rejected by the promise | ||
*/ | ||
reason: Error; | ||
/** | ||
* - The resolved value of the promise (undefined when rejected) | ||
*/ | ||
value: undefined; | ||
}; |
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,2 +1,3 @@ | ||
export function getDatabaseName(prefix: string, doctype: string): string; | ||
export function getPrefix(uri: string): string; | ||
export function formatAggregatedError(aggregatedError: any): any; |