Skip to content

Commit 0b30d43

Browse files
Fix compile time issue with typescript strict mode (#194)
1 parent 24dd190 commit 0b30d43

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66

77
### 🐞 Bug fixes
88

9-
- *...Add fixed bugs here...*
9+
- Add void return for some method declaration to match TS strict mode (#194)
1010

1111
## 1.15.0
1212

1313
### Features and improvements
1414

15-
- ** Breaking Change: ** Rename css classes ((#83)[https://github.com/maplibre/maplibre-gl-js/issues/83])
16-
- Added custom protocol support to allow overriding ajax calls ((#29)[https://github.com/maplibre/maplibre-gl-js/issues/29])
15+
- ** Breaking Change: ** Rename css classes (#83)
16+
- Added custom protocol support to allow overriding ajax calls (#29)
1717
- Added setTransformRequest to map (#159)
1818
- Publish @maplibre/maplibre-gl-style-spec v14.0.0 on NPM (#149)
1919
- Replace link to mapbox on LogoControl by link to maplibre (#151)
2020
- Migrate style spec files from mapbox to maplibre (#147)
2121
- Publish the MapLibre style spec in NPM (#140)
2222
- Replace mapboxgl with maplibregl in JSDocs inline examples (#134)
23-
- Bring in typescript definitions file (#24)
23+
- Bring in typescript definitions file (#24)
2424
- Update example links to https://maplibre.org/maplibre-gl-js-docs/ (#131)
2525
- Improve performance of layers with constant `*-sort-key` (#78)
2626

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ declare namespace maplibregl {
7373
* return { cancel: () => { } };
7474
* });
7575
*/
76-
export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
76+
export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable): void;
7777
/**
7878
* Removes a previusly added protocol
7979
* @param {string} customProtocol - the custom protocol to remove registration for
8080
* @example
8181
* maplibregl.removeProtocol('custom');
8282
*/
83-
export function removeProtocol(customProtocol: string);
83+
export function removeProtocol(customProtocol: string): void;
8484

8585
export function setRTLTextPlugin(pluginURL: string, callback: (error: Error) => void, deferred?: boolean): void;
8686
export function getRTLTextPluginStatus(): PluginStatus;

0 commit comments

Comments
 (0)