fix(lib/discord/types): type props in RouteSettingsItem

This commit is contained in:
PalmDevs 2025-07-19 14:01:35 +07:00
parent 72f4232a95
commit 005931e338
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -1,4 +1,6 @@
import { EventEmitter } from 'node:events'
import type { StackScreenProps } from '@react-navigation/stack'
import type { ReactNavigationParamList } from '@revenge-mod/externals/react-navigation'
import type { ComponentProps, ComponentType, FC, JSX, ReactNode } from 'react'
import type {
ImageSourcePropType,
@ -614,7 +616,12 @@ export namespace DiscordModules {
export interface RouteSettingsItem extends BaseSettingsItem {
type: 'route'
screen: { route: string; getComponent(): ComponentType }
screen: {
route: string
getComponent(): ComponentType<
StackScreenProps<ReactNavigationParamList>
>
}
}
export interface StaticSettingsItem extends BaseSettingsItem {