Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(core): sdkVersion and osVersion type adjustments#10271

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
NathanWalker wants to merge2 commits intoNativeScript:main
base:main
Choose a base branch
Loading
fromguillemc23:patch-1

Conversation

NathanWalker
Copy link
Contributor

PR Checklist

What is the current behavior?

Currently, bothDevice.sdkVersion andDevice.osVersion return a number in Android. The typings state that this should be a string so expressions likeif (Device.sdkVersion >= 23) {...} are not possible.

What is the new behavior?

I addednumber | string to the IDevice interface declaration so these expressions are allowed without the need to add@ts-ignore. I also updated the JSDoc to reflect this change.

These two return a number in Android (can't test iOS). Adding this fix would make expressions such as `Device.sdkVersion >= 23` possible without the need to add `@ts-ignore` before
Updated JSDoc to reflect Android behavior
@nx-cloud
Copy link

nx-cloudbot commentedApr 17, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit4cfc742. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 2 targets

Sent with 💌 fromNxCloud.

@cla-botcla-botbot added the cla: yes labelApr 17, 2023
@NathanWalker
Copy link
ContributorAuthor

See commentshere

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
9.0
Development

Successfully merging this pull request may close these issues.

2 participants
@NathanWalker@guillemc23

[8]ページ先頭

©2009-2025 Movatter.jp