File tree Expand file tree Collapse file tree
frontend/components/textarea Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,8 +144,8 @@ export const TextareaFieldComponent = class extends HTMLElement {
144144 /**
145145 * Upload file
146146 * @param {object } file - File
147- * @param {Function } onSuccess - Success callback
148- * @param {Function } onError - Error callback
147+ * @param {function(string): void } onSuccess - Success callback
148+ * @param {function(string): void } onError - Error callback
149149 * @returns {Promise<string> } - File URL or error message
150150 */
151151 async uploadFile ( file , onSuccess , onError ) {
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ const jsonPostTemplate = (properties) => {
1010/**
1111 * Get post template
1212 * @param {object } publication - Publication configuration
13- * @param {Function } [publication.postTemplate] - Publication post template
13+ * @param {function(object): string } [publication.postTemplate] - Publication post template
1414 * @param {object } [publication.preset] - Publication preset
15- * @returns {Function } Post template rendering function
15+ * @returns {function(object): string } Post template rendering function
1616 */
1717export const getPostTemplate = ( { postTemplate, preset } ) => {
1818 if ( postTemplate ) {
You can’t perform that action at this time.
0 commit comments