Skip to content

Commit d08f44c

Browse files
authored
Fix: missing Promise in tsdoc of 2 functions (#6652)
added missing Promise to tsdoc of getRoutesByLanguage and _getPageMetadata
1 parent 6f21c48 commit d08f44c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

next.dynamic.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const getDynamicRouter = async () => {
7979
* This method returns a list of all routes that exist for a given locale
8080
*
8181
* @param {string} locale
82-
* @returns {Array<string>}
82+
* @returns {Promise<Array<string>>}
8383
*/
8484
const getRoutesByLanguage = async (locale = defaultLocale.code) => {
8585
const shouldIgnoreStaticRoute = pathname =>
@@ -187,7 +187,7 @@ const getDynamicRouter = async () => {
187187
*
188188
* @param {string} locale
189189
* @param {string} path
190-
* @returns {import('next').Metadata}
190+
* @returns {Promise<import('next').Metadata>}
191191
*/
192192
const _getPageMetadata = async (locale = defaultLocale.code, path = '') => {
193193
const pageMetadata = { ...PAGE_METADATA };

0 commit comments

Comments
 (0)