From 1e805aeec07baae3cb2646cec18d2156f992db31 Mon Sep 17 00:00:00 2001 From: Ian <52504170+ibacher@users.noreply.github.com> Date: Fri, 8 Sep 2023 14:06:14 -0400 Subject: [PATCH] fix: correct typings for HTMLLayoutData See [this Slack thread](https://single-spa.slack.com/archives/C8R6U7MT7/p1694186774322029). --- src/isomorphic/constructRoutes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/isomorphic/constructRoutes.js b/src/isomorphic/constructRoutes.js index 66df6cc..97c6df4 100644 --- a/src/isomorphic/constructRoutes.js +++ b/src/isomorphic/constructRoutes.js @@ -70,10 +70,10 @@ export const MISSING_PROP = typeof Symbol !== "undefined" ? Symbol() : "@"; * }} Application * * @typedef {{ - * loaders: { + * loaders?: { * [key: string]: any; * }, - * props: { + * props?: { * [key: string]: any; * }, * errors?: { @@ -82,7 +82,7 @@ export const MISSING_PROP = typeof Symbol !== "undefined" ? Symbol() : "@"; * }} HTMLLayoutData * * @param {RoutesConfig} routesConfig - * @param {HTMLLayoutData=} htmlLayoutData + * @param {HTMLLayoutData} htmlLayoutData * @returns {ResolvedRoutesConfig} */ export function constructRoutes(routesConfig, htmlLayoutData) {