igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Type Alias MyProfileActions

    The viewer's own profile's actions: the bottom tab bar's way back to the feed, and the Edit profile button. Its type is written out because the feed's own tab bar opens this screen: the registry reads both definitions, so an action type inferred from opens would close a loop the compiler cannot break. openFeedTab is the type opens('FeedTimeline', …) yields — a tab edge whose call lands on the feed tab's root — and openEditProfile the one opens('EditProfile', …) yields, the editor's handle pushed over the profile.

    type MyProfileActions = {
        openEditProfile: (
            self: ScreenHandle,
            state: MyProfileState,
        ) => ScreenEdgeBound<
            ScreenEdgeShape<typeof EditProfileScreen, [], "button">,
            () => ScreenEdgeTaken<typeof EditProfileScreen, unknown, "button">,
        >;
        openFeedTab: (
            self: ScreenHandle,
            state: Record<never, never>,
        ) => ScreenEdgeBound<
            ScreenEdgeShape<typeof FeedTimelineScreen, [], "tab">,
            () => ScreenEdgeTaken<typeof FeedTimelineScreen, unknown, "tab">,
        >;
    }
    Index

    Properties

    openEditProfile: (
        self: ScreenHandle,
        state: MyProfileState,
    ) => ScreenEdgeBound<
        ScreenEdgeShape<typeof EditProfileScreen, [], "button">,
        () => ScreenEdgeTaken<typeof EditProfileScreen, unknown, "button">,
    >
    openFeedTab: (
        self: ScreenHandle,
        state: Record<never, never>,
    ) => ScreenEdgeBound<
        ScreenEdgeShape<typeof FeedTimelineScreen, [], "tab">,
        () => ScreenEdgeTaken<typeof FeedTimelineScreen, unknown, "tab">,
    >