factory typing fix
This commit is contained in:
1 parent
8260e3cf34
commit
8c8a0e60f4
1 file changed
+1
-1
@@ -119,7 +119,7 @@ export function createMenu(res: StrapiMenu): IMenu[] {
|
|||||||
}, ...items]
|
}, ...items]
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function createPage(res: StrapiPage | StrapiPage[]): IPage | null {
|
export async function createPage(res: StrapiPage | StrapiPage[]): Promise<IPage | null> {
|
||||||
const item = asItem(res)
|
const item = asItem(res)
|
||||||
if (!item) {
|
if (!item) {
|
||||||
return null
|
return null
|
||||||
|
|||||||
Reference in new issue
Block a user