docs: expand input and output object types in API signatures
This commit is contained in:
@@ -43,7 +43,7 @@ export default function create(pool) {
|
||||
* @param {string} [input.city] - The city.
|
||||
* @param {string} [input.county] - The county.
|
||||
* @param {number} [input.sort] - Optional sort order.
|
||||
* @returns {Promise<object>} The created address.
|
||||
* @returns {Promise<{id: number, entityId: number, firstName: string|null, name: string|null, street: string|null, streetNumber: string|null, zip: string|null, city: string|null, county: string|null, addressType: string, sort: number}>} The created address.
|
||||
* @throws {Error} If the address type is missing.
|
||||
*
|
||||
* @example
|
||||
|
||||
Reference in New Issue
Block a user