-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add archived posts and stories feeds #1285
base: master
Are you sure you want to change the base?
Conversation
|
||
async request(): Promise<any> { | ||
const { body } = await this.client.request.send({ | ||
url: '/api/v1/feed/only_me_feed/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file should be named only-me.feed.ts
and thus the class OnlyMeFeed
.
//import { ArchivedFeedResponseRootObject, ArchivedFeedResponseMedia } from '../responses'; // new | ||
//import { SavedFeedResponseRootObject, SavedFeedResponseMedia } from '../responses'; | ||
|
||
export class ArchivedPostsFeed extends Feed<any, any> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Feed should have proper types, not <any, any>
.
//import { ArchivedFeedResponseRootObject, ArchivedFeedResponseMedia } from '../responses'; // new | ||
//import { SavedFeedResponseRootObject, SavedFeedResponseMedia } from '../responses'; | ||
|
||
export class ArchivedStoriesFeed extends Feed<any, any> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add types (see comment above)
|
||
async request(): Promise<any> { | ||
const { body } = await this.client.request.send({ | ||
url: '/api/v1/archive/reel/day_shells/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename file to day-shells.feed.ts
and class to DayShellsFeed
.
No description provided.