diff --git a/types/leaflet-fullscreen/index.d.ts b/types/leaflet-fullscreen/index.d.ts new file mode 100644 index 0000000000..5051af1f60 --- /dev/null +++ b/types/leaflet-fullscreen/index.d.ts @@ -0,0 +1,12 @@ +// Type definitions for leaflet-fullscreen 1.0 +// Project: https://github.com/Leaflet/Leaflet.fullscreen +// Definitions by: Denis Carriere +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace L { + interface MapOptions { + fullscreenControl?: true | {pseudoFullscreen: boolean} + } +} diff --git a/types/leaflet-fullscreen/leaflet-fullscreen-tests.ts b/types/leaflet-fullscreen/leaflet-fullscreen-tests.ts new file mode 100644 index 0000000000..d016d2eea5 --- /dev/null +++ b/types/leaflet-fullscreen/leaflet-fullscreen-tests.ts @@ -0,0 +1,5 @@ +var map = L.map('map', { + center: [51.505, -0.09], + zoom: 13, + fullscreenControl: true, +}); \ No newline at end of file diff --git a/types/leaflet-fullscreen/package.json b/types/leaflet-fullscreen/package.json new file mode 100644 index 0000000000..8501cf4dbc --- /dev/null +++ b/types/leaflet-fullscreen/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@types/leaflet": "^1.0.58" + } +} \ No newline at end of file diff --git a/types/leaflet-fullscreen/tsconfig.json b/types/leaflet-fullscreen/tsconfig.json new file mode 100644 index 0000000000..a47f7af1bd --- /dev/null +++ b/types/leaflet-fullscreen/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "leaflet-fullscreen-tests.ts" + ] +} \ No newline at end of file diff --git a/types/leaflet-fullscreen/tslint.json b/types/leaflet-fullscreen/tslint.json new file mode 100644 index 0000000000..192203ab54 --- /dev/null +++ b/types/leaflet-fullscreen/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "../tslint.json" +} \ No newline at end of file