ammarahm-ed / react-native-mmkv-storage

An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI
https://rnmmkv.now.sh
MIT License
1.56k stars 109 forks source link

[Bug] TypeScript types for synchronous getters do not include null or undefined #320

Closed frw closed 8 months ago

frw commented 1 year ago

Describe the bug TypeScript types for synchronous getters are missing the null or undefined types.

To Reproduce Steps to reproduce the behavior:

  1. Check mmkvinstance.d.ts

Expected behavior Since the value might not have been set yet, TypeScript types for synchronous getters and setters should include the null or undefined types, similar to how the asynchronous version do include the null or undefined types.

Screenshots image

Platform Information:

ammarahm-ed commented 8 months ago

This has been fixed in v0.10.0