diff --git a/CHANGELOG.md b/CHANGELOG.md index 6eb6aed8947..57b288f67e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,21 +6,21 @@ ### 🐞 Bug fixes -- *...Add fixed bugs here...* +- Add void return for some method declaration to match TS strict mode (#194) ## 1.15.0 ### Features and improvements -- ** Breaking Change: ** Rename css classes ((#83)[https://github.com/maplibre/maplibre-gl-js/issues/83]) -- Added custom protocol support to allow overriding ajax calls ((#29)[https://github.com/maplibre/maplibre-gl-js/issues/29]) +- ** Breaking Change: ** Rename css classes (#83) +- Added custom protocol support to allow overriding ajax calls (#29) - Added setTransformRequest to map (#159) - Publish @maplibre/maplibre-gl-style-spec v14.0.0 on NPM (#149) - Replace link to mapbox on LogoControl by link to maplibre (#151) - Migrate style spec files from mapbox to maplibre (#147) - Publish the MapLibre style spec in NPM (#140) - Replace mapboxgl with maplibregl in JSDocs inline examples (#134) -- Bring in typescript definitions file (#24) +- Bring in typescript definitions file (#24) - Update example links to https://maplibre.org/maplibre-gl-js-docs/ (#131) - Improve performance of layers with constant `*-sort-key` (#78) diff --git a/src/index.d.ts b/src/index.d.ts index b71cf2899b6..4afb3f14bc4 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -73,14 +73,14 @@ declare namespace maplibregl { * return { cancel: () => { } }; * }); */ - export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback) => Cancelable); + export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback) => Cancelable): void; /** * Removes a previusly added protocol * @param {string} customProtocol - the custom protocol to remove registration for * @example * maplibregl.removeProtocol('custom'); */ - export function removeProtocol(customProtocol: string); + export function removeProtocol(customProtocol: string): void; export function setRTLTextPlugin(pluginURL: string, callback: (error: Error) => void, deferred?: boolean): void; export function getRTLTextPluginStatus(): PluginStatus;