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

    Function defineOtherwise

    • Builds the constant an entry's otherwise takes: its keys are screen ids of the platform, so a screen this build does not have is a type error here, and each handler receives its own screen's handle. One constant serves every entry — the same branches answer a challenge wherever the screens met it.

      The keys are the screens' ids ([ChallengeVerifyCodeScreen.id]: code => …) because a screen definition is an object, not a property name; the platform's definition is looked up under each id, so a key that is not a screen of this build dies here, before any process is built.

      Type Parameters

      • const Branches extends AndroidOtherwiseBranches

      Parameters

      • branches: Branches & { readonly [K in string | number | symbol]: never }

      Returns AndroidOtherwise<AndroidOtherwiseBranchError<Branches>>