mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
Big replacement: bool with boolean
This commit is contained in:
1 parent
bded8a8af5
commit
dd35f69637
128 files changed
+4254
-4240
No files matched your search
@@ -2,7 +2,7 @@
|
||||
/// <reference path="google.geolocation.d.ts" />
|
||||
|
||||
//determine if the handset has client side geo location capabilities
|
||||
var isInit: bool = geo_position_js.init();
|
||||
var isInit: boolean = geo_position_js.init();
|
||||
if(isInit){
|
||||
geo_position_js.getCurrentPosition(success_callback, error_callback);
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface GeolocationStatic {
|
||||
init(): bool;
|
||||
init(): boolean;
|
||||
getCurrentPosition(success: (position: Position) => void, error?: (positionError: PositionError) => void, opts?: PositionOptions): void;
|
||||
showMap(latitude: number, longitude: number): void;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user