diff --git a/src/renderer/redux/actions/publish.js b/src/renderer/redux/actions/publish.js index 489c927dc..ca831c214 100644 --- a/src/renderer/redux/actions/publish.js +++ b/src/renderer/redux/actions/publish.js @@ -20,7 +20,7 @@ import fs from 'fs'; import path from 'path'; import { CC_LICENSES, COPYRIGHT, OTHER } from 'constants/licenses'; import type { Dispatch, GetState } from 'types/redux'; -import { Source } from 'types/claim'; +import type { Source } from 'types/claim'; type Action = UpdatePublishFormAction | { type: ACTIONS.CLEAR_PUBLISH }; diff --git a/src/renderer/redux/reducers/publish.js b/src/renderer/redux/reducers/publish.js index 4b799c8c5..53e20375c 100644 --- a/src/renderer/redux/reducers/publish.js +++ b/src/renderer/redux/reducers/publish.js @@ -4,7 +4,7 @@ import { buildURI } from 'lbry-redux'; import * as ACTIONS from 'constants/action_types'; import * as THUMBNAIL_STATUSES from 'constants/thumbnail_upload_statuses'; import { CHANNEL_ANONYMOUS } from 'constants/claim'; -import type { StreamSource } from 'types/stream'; +import type { Source } from 'types/claim'; type PublishState = { editingURI: ?string, @@ -84,7 +84,7 @@ export type PublishParams = { currency: string, amount: number, }, - sources?: StreamSource, + sources?: Source, }; const defaultState: PublishState = { diff --git a/src/renderer/types/claim.js b/src/renderer/types/claim.js index f3343c476..dcc8fef1e 100644 --- a/src/renderer/types/claim.js +++ b/src/renderer/types/claim.js @@ -1,8 +1,14 @@ // @flow -import type { StreamSource } from 'types/stream'; - // Currently incomplete + +export type Source = { + contentType: string, + source: string, + sourceType: string, + version: string, +}; + export type Metadata = { nsfw: boolean, title: string, @@ -38,7 +44,7 @@ export type Claim = { }, stream: { metadata: Metadata, - source: StreamSource, + source: Source, }, }, }; diff --git a/src/renderer/types/stream.js b/src/renderer/types/stream.js deleted file mode 100644 index da8435bfa..000000000 --- a/src/renderer/types/stream.js +++ /dev/null @@ -1,8 +0,0 @@ -// @flow - -export type StreamSource = { - contentType: string, - source: string, - sourceType: string, - version: string, -};