Skip to content

Commit c7d60a7

Browse files
style: jsdoc/reject-function-type
1 parent 11e49fa commit c7d60a7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/frontend/components/textarea/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

packages/indiekit/lib/post-template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/
1717
export const getPostTemplate = ({ postTemplate, preset }) => {
1818
if (postTemplate) {

0 commit comments

Comments
 (0)