diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-12-22 09:17:07 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-22 09:17:07 -0600 |
commit | 4913a07e3365d2004e67e9131dd4b4c15094dd33 (patch) | |
tree | 6247f7fe52fdc8a6b29143f1d2f247b4e28987ec /src/state/models/feed-view.ts | |
parent | 7f4a54ff0d83983460e787fde21707405acc38b0 (diff) | |
download | voidsky-4913a07e3365d2004e67e9131dd4b4c15094dd33.tar.zst |
Unvendor the api and switch to @atproto/api
Diffstat (limited to 'src/state/models/feed-view.ts')
-rw-r--r-- | src/state/models/feed-view.ts | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts index ca00d5e2b..2c205d7c0 100644 --- a/src/state/models/feed-view.ts +++ b/src/state/models/feed-view.ts @@ -1,12 +1,14 @@ import {makeAutoObservable, runInAction} from 'mobx' -import * as GetTimeline from '../../third-party/api/src/client/types/app/bsky/feed/getTimeline' import { - Main as FeedViewPost, - ReasonTrend, - ReasonRepost, -} from '../../third-party/api/src/client/types/app/bsky/feed/feedViewPost' -import {View as PostView} from '../../third-party/api/src/client/types/app/bsky/feed/post' -import * as GetAuthorFeed from '../../third-party/api/src/client/types/app/bsky/feed/getAuthorFeed' + AppBskyFeedGetTimeline as GetTimeline, + AppBskyFeedFeedViewPost, + AppBskyFeedPost, + AppBskyFeedGetAuthorFeed as GetAuthorFeed, +} from '@atproto/api' +type FeedViewPost = AppBskyFeedFeedViewPost.Main +type ReasonTrend = AppBskyFeedFeedViewPost.ReasonTrend +type ReasonRepost = AppBskyFeedFeedViewPost.ReasonRepost +type PostView = AppBskyFeedPost.View import {AtUri} from '../../third-party/uri' import {RootStoreModel} from './root-store' import * as apilib from '../lib/api' |