Skip to content

[StatusBar] height property missing on StatusBarInfo object #2365

Open
@navalex

Description

@navalex

Bug Report

Plugin(s)

"@capacitor/status-bar": "^7.0.1"

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 7.2.0
  @capacitor/core: 7.2.0
  @capacitor/android: 7.2.0
  @capacitor/ios: 7.2.0

Installed Dependencies:

  @capacitor/core: 7.2.0
  @capacitor/cli: 7.2.0
  @capacitor/ios: 7.2.0
  @capacitor/android: 7.2.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

Unrelated

Current Behavior

When using StatusBar.getInfo(), the returned object from the Promise of type StatusBarInfo contains a height property, but the type definition of the object doesn't. It throws a typescript error, at least on editor.

Expected Behavior

Should define this property on the object

Code Reproduction

StatusBar.getInfo().then(statusBarInfo => {
	console.log(statusBarInfo.height)
})

Other Technical Details

No

Additional Context

No

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