factory typing fix

This commit is contained in:
tmshv committed 2021-09-22 00:23:06 +03:00
1 parent 8260e3cf34
commit 8c8a0e60f4
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ export function createMenu(res: StrapiMenu): IMenu[] {
}, ...items]
}
export async function createPage(res: StrapiPage | StrapiPage[]): IPage | null {
export async function createPage(res: StrapiPage | StrapiPage[]): Promise<IPage | null> {
const item = asItem(res)
if (!item) {
return null