File tree Expand file tree Collapse file tree 1 file changed +26
-8
lines changed Expand file tree Collapse file tree 1 file changed +26
-8
lines changed Original file line number Diff line number Diff line change 11type  watchId  =  int ; 
22
3+ type  position  =  {
4+  .
5+  "coords":  coords , 
6+  "timestamp":  float , 
7+ }
8+ and  coords  =  {
9+  .
10+  "accuracy":  int , 
11+  "heading":  int , 
12+  "latitude":  float , 
13+  "longitude":  float , 
14+  "speed":  int , 
15+ }; 
16+ 
17+ type  error  =  {
18+  .
19+  "code":  int , 
20+  "message":  string , 
21+ }; 
22+ 
323let  setRNConfiguration :  (~skipPermissionRequests : Js . boolean =?,  unit ) => unit ; 
424
525let  requestAuthorization :  unit  => unit ; 
626
727let  stopObserving :  unit  => unit ; 
828
9- let  clearWatch :  watchId  => unit ; 
10- 
1129let  getCurrentPosition : 
1230 (
13-  ~success : unit  => unit , 
14-  ~error : unit  => unit , 
1531 ~timeout : int =?, 
1632 ~maximumAge : int =?, 
1733 ~enableHighAccuracy : Js . boolean =?, 
18-  unit 
34+  position  => unit , 
35+  error  => unit 
1936 ) =>
2037 unit ; 
2138
2239let  watchPosition : 
2340 (
24-  ~success : unit  => unit , 
25-  ~error : unit  => unit , 
2641 ~timeout : int =?, 
2742 ~maximumAge : int =?, 
2843 ~enableHighAccuracy : Js . boolean =?, 
2944 ~distanceFilter : int =?, 
3045 ~useSignificantChanges : Js . boolean =?, 
31-  unit 
46+  position  => unit , 
47+  error  => unit 
3248 ) =>
3349 watchId ; 
50+ 
51+ let  clearWatch :  watchId  => unit ; 
                         You can’t perform that action at this time. 
           
                  
0 commit comments