@@ -3,7 +3,7 @@ import type { CommentObject, CommentSymbol } from 'comment-json'
33import type { Logger , ViteDevServer } from 'vite'
44import type { TabBar , TabBarItem } from './config'
55import type { PagesConfig } from './config/types'
6- import type { PageMetaDatum , PagePath , ResolvedOptions , SubPageMetaDatum , UserOptions } from './types'
6+ import type { ExcludeIndexSignature , PageMetaDatum , PagePath , ResolvedOptions , SubPageMetaDatum , UserOptions } from './types'
77
88import fs from 'node:fs'
99import path from 'node:path'
@@ -437,7 +437,7 @@ export class PageContext {
437437 for ( const existing of pageJson . subPackages as unknown as SubPageMetaDatum [ ] ) {
438438 const sub = newSubPackages . get ( existing . root )
439439 if ( sub ) {
440- existing . pages = mergePlatformItems ( existing . pages as unknown as CommentArray < CommentObject > , currentPlatform , sub . pages , 'path' ) as any
440+ existing . pages = mergePlatformItems ( existing . pages as any , currentPlatform , sub . pages , 'path' ) as any
441441 newSubPackages . delete ( existing . root )
442442 }
443443 }
@@ -512,7 +512,7 @@ function getPagePaths(dir: string, options: ResolvedOptions) {
512512 return pagePaths
513513}
514514
515- function mergePlatformItems < T = any > ( source : CommentArray < CommentObject > | undefined , currentPlatform : string , items : T [ ] , uniqueKeyName : keyof T ) : CommentArray < CommentObject > {
515+ function mergePlatformItems < T = any > ( source : CommentArray < CommentObject > | undefined , currentPlatform : string , items : T [ ] , uniqueKeyName : keyof ExcludeIndexSignature < T > ) : CommentArray < CommentObject > {
516516 const src = source || new CommentArray < CommentObject > ( )
517517 currentPlatform = currentPlatform . toUpperCase ( )
518518
0 commit comments