Skip to content

Commit

Permalink
remove index.types.d.ts (keybase#19730)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnojima authored Sep 17, 2019
1 parent c5baf21 commit 80aeced
Show file tree
Hide file tree
Showing 66 changed files with 317 additions and 346 deletions.
11 changes: 10 additions & 1 deletion shared/app/global-errors/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
import * as React from 'react'
import {Props} from './index.types'
import {RPCError} from '../../util/errors'

export type Props = {
onFeedback: () => void
error: null | Error | RPCError
daemonError: Error | null
onDismiss: () => void
copyToClipboard: (arg0: string) => void
}

export default class GlobalError extends React.Component<Props> {}
2 changes: 1 addition & 1 deletion shared/app/global-errors/index.desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {globalStyles, globalColors, globalMargins, platformStyles, transition} f
import {ignoreDisconnectOverlay} from '../../local-debug.desktop'
import {RPCError} from '../../util/errors'

import {Props as _Props} from './index.types'
import {Props as _Props} from './index'

type Size = 'Closed' | 'Small' | 'Big'

Expand Down
2 changes: 1 addition & 1 deletion shared/app/global-errors/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import * as Kb from '../../common-adapters/mobile.native'
import * as Styles from '../../styles'
import {RPCError} from '../../util/errors'
import {Props as _Props} from './index.types'
import {Props as _Props} from './index'

type Size = 'Closed' | 'Small' | 'Big'

Expand Down
9 changes: 0 additions & 9 deletions shared/app/global-errors/index.types.d.ts

This file was deleted.

18 changes: 17 additions & 1 deletion shared/chat/conversation/attachment-fullscreen/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
import * as React from 'react'
import {Props} from './index.types'
import {MessageAttachment} from '../../../constants/types/chat2'
export type Props = {
path: string
previewHeight: number
previewWidth: number
title: string
message: MessageAttachment
progress: number
progressLabel: string | null
onNextAttachment: () => void
onPreviousAttachment: () => void
onClose: () => void
onDownloadAttachment: (() => void) | null
onShowInFinder: (() => void) | null
isVideo: boolean
autoPlay: boolean
}
export default class Fullscreen extends React.Component<Props> {}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '../../../common-adapters'
import MessagePopup from '../messages/message-popup'
import * as Styles from '../../../styles'
import {Props} from './index.types'
import {Props} from '.'
import KeyHandler from '../../../util/key-handler.desktop'

type State = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import * as Kb from '../../../common-adapters/mobile.native'
import * as Styles from '../../../styles'
import MessagePopup from '../messages/message-popup'
import {Props} from './index.types'
import {Props} from '.'
import RNVideo from 'react-native-video'
import logger from '../../../logger'

Expand Down
17 changes: 0 additions & 17 deletions shared/chat/conversation/attachment-fullscreen/index.types.d.ts

This file was deleted.

This file was deleted.

7 changes: 6 additions & 1 deletion shared/chat/conversation/giphy/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import * as React from 'react'
import {Props} from './index.types'
import * as RPCChatTypes from '../../../constants/types/rpc-chat-gen'
export type Props = {
previews: Array<RPCChatTypes.GiphySearchResult> | null
galleryURL: string
onClick: (arg0: string) => void
}
export default class GiphySearch extends React.Component<Props> {}
2 changes: 1 addition & 1 deletion shared/chat/conversation/giphy/index.desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as Kb from '../../../common-adapters'
import * as Styles from '../../../styles'
import UnfurlImage from '../messages/wrapper/unfurl/image'
import {getMargins, scaledWidth} from './width'
import {Props} from './index.types'
import {Props} from '.'

const gridHeight = 100

Expand Down
2 changes: 1 addition & 1 deletion shared/chat/conversation/giphy/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import * as Kb from '../../../common-adapters'
import {NativeWebView} from '../../../common-adapters/native-wrappers.native'
import * as Styles from '../../../styles'
import {Props} from './index.types'
import {Props} from '.'

class GiphySearch extends React.Component<Props> {
render() {
Expand Down
6 changes: 0 additions & 6 deletions shared/chat/conversation/giphy/index.types.d.ts

This file was deleted.

19 changes: 17 additions & 2 deletions shared/chat/conversation/header-area/normal/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
import {Component} from 'react'
import {Props} from './index.types'
export type Props = Props
export type Props = {
badgeNumber?: number
channelName?: string
contactNames: {[participant: string]: string}
muted: boolean
onBack: () => void
onOpenFolder?: () => void
onShowProfile: (user: string) => void
onToggleInfoPanel: () => void
onToggleThreadSearch: () => void
infoPanelOpen: boolean
teamName?: string
participants: Array<string>
pendingWaiting: boolean
smallTeam: boolean
unMuteConversation: () => void
}
export class ChannelHeader extends Component<Props> {}
export class UsernameHeader extends Component<Props> {}
export class PhoneOrEmailHeader extends Component<Props> {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import {Box, Icon, Text, ConnectedUsernames} from '../../../../common-adapters'
import * as Styles from '../../../../styles'
import {Props} from './index.types'
import {Props} from '.'

const ShhIcon = props => (
<Box style={{alignSelf: 'flex-start', height: 0, position: 'relative', width: 0}}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '../../../../common-adapters'
import {assertionToDisplay} from '../../../../common-adapters/usernames'
import * as Styles from '../../../../styles'
import {Props} from './index.types'
import {Props} from '.'

const shhIconColor = Styles.globalColors.black_20
const shhIconFontSize = 24
Expand Down
17 changes: 0 additions & 17 deletions shared/chat/conversation/header-area/normal/index.types.d.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import * as React from 'react'
import {Props} from './index.types'

export type Props = {
attachTo?: () => React.Component<any> | null
visible: boolean
onHidden: () => void
onSelect: (mediaType: 'photo' | 'video' | 'mixed', location: 'camera' | 'library') => void
}
declare class FilePickerPopup extends React.Component<Props> {}
export default FilePickerPopup
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import * as Kb from '../../../../common-adapters/mobile.native'
import * as Styles from '../../../../styles'
import {Props} from './index.types'
import {Props} from '.'
import {isIOS} from '../../../../constants/platform'

const Prompt = () => (
Expand Down

This file was deleted.

21 changes: 20 additions & 1 deletion shared/chat/conversation/list-area/normal/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
import * as React from 'react'
import {Props} from './index.types'
import * as I from 'immutable'
import * as Types from '../../../../constants/types/chat2'

export type Props = {
centeredOrdinal: Types.Ordinal | null
copyToClipboard: (arg0: string) => void
containsLatestMessage: boolean
conversationIDKey: Types.ConversationIDKey
messageOrdinals: I.List<Types.Ordinal>
onFocusInput: () => void
onJumpToRecent: () => void
loadNewerMessages: (ordinal?: Types.Ordinal | null) => void
loadOlderMessages: (ordinal?: Types.Ordinal | null) => void
editingOrdinal: Types.Ordinal | null
lastMessageIsOurs: boolean
lastLoadMoreOrdinal: Types.Ordinal | null
scrollListDownCounter: number
scrollListToBottomCounter: number
scrollListUpCounter: number
}
export default class ConversationList extends React.Component<Props> {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import SpecialBottomMessage from '../../messages/special-bottom-message'
import {ErrorBoundary} from '../../../../common-adapters'
import {debounce, throttle, chunk} from 'lodash-es'
import * as Styles from '../../../../styles'
import {Props} from './index.types'
import {Props} from '.'
import shallowEqual from 'shallowequal'
import {globalMargins} from '../../../../styles/shared'
import logger from '../../../../logger'
Expand Down
2 changes: 1 addition & 1 deletion shared/chat/conversation/list-area/normal/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {mobileTypingContainerHeight} from '../../input-area/normal/typing'
import {Box, NativeVirtualizedList, ErrorBoundary} from '../../../../common-adapters/mobile.native'
import logger from '../../../../logger'
import * as Styles from '../../../../styles'
import {Props} from './index.types'
import {Props} from '.'
import JumpToRecent from './jump-to-recent'

const debugEnabled = false
Expand Down
20 changes: 0 additions & 20 deletions shared/chat/conversation/list-area/normal/index.types.d.ts

This file was deleted.

11 changes: 10 additions & 1 deletion shared/chat/conversation/messages/set-explode-popup/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import * as React from 'react'
import {Props} from './index.types'
import {MessageExplodeDescription} from '../../../../constants/types/chat2'

export type Props = {
attachTo?: () => React.Component<any> | null
visible: boolean
onHidden: () => void
selected: number
onSelect: (arg0: number) => void
items: MessageExplodeDescription[]
}
export declare class SetExplodingPopup extends React.Component<Props> {}
export default SetExplodingPopup
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import {MessageExplodeDescription} from '../../../../constants/types/chat2'
import {MenuItems, Box2, Icon, Text, FloatingMenu} from '../../../../common-adapters'
import {platformStyles, globalColors} from '../../../../styles'
import {Props} from './index.types'
import {Props} from '.'

const quantityTextStyle = platformStyles({
common: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react'
import {Box2, Text, FloatingPicker} from '../../../../common-adapters/mobile.native'
import {Props} from './index.types'
import {Props} from '.'

const Prompt = () => (
<Box2
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import * as React from 'react'
import {Props} from './index.types'
import {StylesCrossPlatform} from '../../../../../styles'
export type Props = {
children?: React.ReactNode
explodedBy?: string
exploding: boolean
measure?: () => void
messageKey: string
style?: StylesCrossPlatform
retainHeight: boolean
}
export declare const animationDuration: number
export default class ExplodingHeightRetainer extends React.Component<Props> {}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as Kb from '../../../../../common-adapters'
import * as Styles from '../../../../../styles'
import {resolveRootAsURL} from '../../../../../desktop/app/resolve-root.desktop'
import {urlsToImgSet} from '../../../../../common-adapters/icon.desktop'
import {Props} from './index.types'
import {Props} from '.'
import SharedTimer, {SharedTimerID} from '../../../../../util/shared-timers'

const explodedIllustration = resolveRootAsURL('../images/icons/pattern-ashes-desktop-400-68.png')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import * as Kb from '../../../../../common-adapters/mobile.native'
import * as Styles from '../../../../../styles'
import {throttle} from 'lodash-es'
import {Props} from './index.types'
import {Props} from '.'
import SharedTimer, {SharedTimerID} from '../../../../../util/shared-timers'

// If this image changes, some hard coded dimensions
Expand Down

This file was deleted.

Loading

0 comments on commit 80aeced

Please sign in to comment.