Skip to content

bug: nav, getLength is publicly exported but not part of public types #28826

@aeharding

Description

@aeharding

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

ion-nav does not have method getLength() typed.

Expected Behavior

ionNav.getLength() is typed

Steps to Reproduce

  1. View stackblitz page-one.tsx.
  2. Observe typescript error.
  3. Open console.
  4. Observe 1 printed.

Code Reproduction URL

https://stackblitz.com/edit/aixnb2-innfhm?file=src%2Fpage-one.tsx

Ionic Info

Ionic:

   Ionic CLI       : 7.1.1 (/Users/aeharding/.nvm/versions/node/v20.8.1/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/react 7.6.3

Capacitor:

   Capacitor CLI      : 5.6.0
   @capacitor/android : 5.6.0
   @capacitor/core    : 5.6.0
   @capacitor/ios     : 5.6.0

Utility:

   cordova-res : not installed globally
   native-run  : not installed globally

System:

   NodeJS : v20.8.1 (/Users/aeharding/.nvm/versions/node/v20.8.1/bin/node)
   npm    : 10.1.0
   OS     : macOS Unknown

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions