Closed flut1 closed 2 years ago
You might want to wrap that as a TS module maybe?
@pke Are you referring to declare module '...' { }
ambient modules? If I understand correctly this is only used if you're declaring types for another module. As we're declaring types for react-native-user-agent
and import "react-native-user-agent"
in the TS compiler also resolves to our index.d.ts
file, a module declaration is unnecessary here.
See this reference example from the TS docs, or for example the types from react-native-picker or react-native-config
@bebnev care to merge this then, please?
I typed properties that only exist on iOS as possibly
undefined
. In case you're not familiar with TypeScript: this should be a relatively safe change, it does not affect runtime behavior.Resolves #15