Skip to content

Commit

Permalink
Fix types for component YAML objects
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Mar 13, 2023
1 parent 6871302 commit 4ec4388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/gulp/copy-to-destination.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async function generateMacroOptions (file) {
* Parse YAML file content as JavaScript
*
* @param {import('vinyl')} file - Component data ${componentName}.yaml
* @returns {Promise<{ examples?: unknown[]; params?: unknown[] }>} Component options
* @returns {Promise<{ examples?: Record<string, unknown>[]; params?: Record<string, unknown>[] }>} Component options
*/
async function convertYamlToJson (file) {
const cache = convertYamlToJson.cache ??= new Map()
Expand Down

0 comments on commit 4ec4388

Please sign in to comment.