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]
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user