Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Stateful Forms updated to Promises
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradWeiser committed Feb 17, 2021
1 parent cb87e0b commit 5bf0767
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paperback-extensions-common",
"version": "2.1.14",
"version": "2.1.15",
"description": "The base methods and structures for a Paperback extension repo",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/base/Source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ export abstract class Source {
* By supplying this value to the Source, the app will render your form to the user
* in the application settings.
*/
getAppStatefulForm(): UserForm { return createUserForm({formElements: []})}
getAppStatefulForm(): Promise<UserForm> { return Promise.resolve(createUserForm({formElements: []}))}

/**
* When the Advanced Search is rendered to the user, this skeleton defines what
* fields which will show up to the user, and returned back to the source
* when the request is made.
*/
getAdvancedSearchForm(): UserForm { return createUserForm({formElements: []})}
getAdvancedSearchForm(): Promise<UserForm> { return Promise.resolve(createUserForm({formElements: []}))}

/**
* (OPTIONAL METHOD) Given a manga ID, return a URL which Safari can open in a browser to display.
Expand Down

0 comments on commit 5bf0767

Please sign in to comment.