-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ export function toBibtex(entries) { | |
/** | ||
* We tolerate `unexpected_field` warnings as it's user provided, it does not have any side effect | ||
* @see https://github.com/EcrituresNumeriques/stylo/issues/187 | ||
* | ||
* @param {string} bibtex | ||
* @returns {Promise<{success: number,empty: boolean,warnings: Array.<string>,error: Array.<string>}>} | ||
*/ | ||
|
@@ -88,6 +87,7 @@ export function deriveAuthorNameAndDate(entry) { | |
|
||
/** | ||
* @param {string} Bibtex bibliography | ||
Check warning on line 89 in front/src/helpers/bibtex.js
|
||
* @param input | ||
Check warning on line 90 in front/src/helpers/bibtex.js
|
||
* @returns {Array.<{ title: string, key: string, type: string }} | ||
Check warning on line 91 in front/src/helpers/bibtex.js
|
||
*/ | ||
export function toEntries(input) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
* Transforms a form into a plain object | ||
* | ||
* formData.entries() does not handle multiple values (sic) and formData.getAll() only works at a field level | ||
* | ||
* @param {React.ReactHTMLElement|FormData} formElement | ||
Check warning on line 5 in front/src/helpers/forms.js
|
||
* @param input | ||
Check warning on line 6 in front/src/helpers/forms.js
|
||
* @returns {Record<string, string|number|string[]|number[]>} | ||
*/ | ||
export function fromFormData(input) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ export function useGraphQL() { | |
* @param {string} sessionToken | ||
* @param {DocumentNode|string} queryOrAST | ||
* @param {{[string: key]: value}} variables | ||
Check warning on line 71 in front/src/helpers/graphQL.js
|
||
* @return {Promise<string|object>} | ||
* @returns {Promise<string|object>} | ||
*/ | ||
export function runQuery({ sessionToken }, { query: queryOrAST, variables }) { | ||
const query = typeof queryOrAST === 'string' ? queryOrAST : print(queryOrAST) | ||
|