Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types for getAllItems is wrong #385

Open
D4uS1 opened this issue Aug 17, 2023 · 1 comment
Open

Types for getAllItems is wrong #385

D4uS1 opened this issue Aug 17, 2023 · 1 comment

Comments

@D4uS1
Copy link

D4uS1 commented Aug 17, 2023

The type for getAllItems is defined as array of an array of SensitiveInfoEntry items. But this seems to be wrong because the method only returns a hashmap.
I am able to access the items in the map using some index but i need to put @ts-ignore above the line to get no typescript errors.

const allItems = await SInfo.getAllItems({ sharedPreferencesName: 'MyPreferencesName' })

// @ts-ignore
const item = allItems['SomeItem'];
@stale
Copy link

stale bot commented Sep 17, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the 🚧 stale label Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant