Drop accidental eslint dependency (#11460)
This commit is contained in:
@@ -8,11 +8,7 @@ import {darkTheme, defaultTheme, dimTheme} from './themes'
|
||||
export type ColorScheme = 'light' | 'dark'
|
||||
|
||||
export type PaletteColorName =
|
||||
| 'default'
|
||||
| 'primary'
|
||||
| 'secondary'
|
||||
| 'inverted'
|
||||
| 'error'
|
||||
'default' | 'primary' | 'secondary' | 'inverted' | 'error'
|
||||
export type PaletteColor = {
|
||||
background: string
|
||||
backgroundLight: string
|
||||
|
||||
@@ -60,8 +60,7 @@ function getRunningChannel(
|
||||
* entirely from embedded manifests, so narrow it ourselves.
|
||||
*/
|
||||
const manifest = currentlyRunning?.manifest as
|
||||
| {metadata?: {channel?: unknown}}
|
||||
| undefined
|
||||
{metadata?: {channel?: unknown}} | undefined
|
||||
const channel = manifest?.metadata?.channel
|
||||
if (typeof channel === 'string' && channel) {
|
||||
return channel
|
||||
|
||||
@@ -44,12 +44,7 @@ export type StartUploadResponse = {
|
||||
}
|
||||
|
||||
export type UploadState =
|
||||
| 'created'
|
||||
| 'finishing'
|
||||
| 'completed'
|
||||
| 'failed'
|
||||
| 'aborted'
|
||||
| 'expired'
|
||||
'created' | 'finishing' | 'completed' | 'failed' | 'aborted' | 'expired'
|
||||
|
||||
export type UploadStatusResponse = {
|
||||
jobId: string
|
||||
|
||||
@@ -3,10 +3,7 @@
|
||||
// on the `video:upload:compressSkipped` analytics event, so the two stay in
|
||||
// sync.
|
||||
export type VideoCompressSkipReason =
|
||||
| 'gif'
|
||||
| 'below-byte-threshold'
|
||||
| 'no-webcodecs'
|
||||
| 'compress-error-fallback'
|
||||
'gif' | 'below-byte-threshold' | 'no-webcodecs' | 'compress-error-fallback'
|
||||
|
||||
export type VideoUploadTransport = 'multipart' | 'legacy' | 'legacy-fallback'
|
||||
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import {type Events} from '#/analytics/metrics/types'
|
||||
|
||||
export type SharedNavTab =
|
||||
| 'Home'
|
||||
| 'Search'
|
||||
| 'Messages'
|
||||
| 'Notifications'
|
||||
| 'MyProfile'
|
||||
'Home' | 'Search' | 'Messages' | 'Notifications' | 'MyProfile'
|
||||
|
||||
export const TAB_TO_NAV_ITEM: Record<
|
||||
SharedNavTab,
|
||||
|
||||
@@ -169,8 +169,7 @@ export type AllNavigatorParams = CommonNavigatorParams & {
|
||||
export type NavigationProp = NativeStackNavigationProp<AllNavigatorParams>
|
||||
|
||||
export type State =
|
||||
| NavigationState
|
||||
| Omit<PartialState<NavigationState>, 'stale'>
|
||||
NavigationState | Omit<PartialState<NavigationState>, 'stale'>
|
||||
|
||||
export type RouteParams = Record<string, string>
|
||||
export type MatchResult = {params: RouteParams}
|
||||
|
||||
Reference in New Issue
Block a user