mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 17:35:49 +08:00
Add missing Type "ol.StyleFunction" to ol.Feature.setStlye.
Add also missing ReturnType "ol.StyleFunction" to ol.Feature.getStlye. https://github.com/DefinitelyTyped/DefinitelyTyped/issues/19688 [openlayers] Adding missing Type ol.StyleFunction to ol.Feature.setStyle #19688
This commit is contained in:
10
types/openlayers/index.d.ts
vendored
10
types/openlayers/index.d.ts
vendored
@@ -1830,11 +1830,11 @@ declare module ol {
|
||||
* Get the feature's style. This return for this method depends on what was
|
||||
* provided to the {@link ol.Feature#setStyle} method.
|
||||
* @return {ol.style.Style|Array.<ol.style.Style>|
|
||||
* ol.FeatureStyleFunction} The feature style.
|
||||
* ol.FeatureStyleFunction|ol.StyleFunction} The feature style.
|
||||
* @api stable
|
||||
* @observable
|
||||
*/
|
||||
getStyle(): (ol.style.Style | ol.style.Style[] | ol.FeatureStyleFunction);
|
||||
getStyle(): (ol.style.Style | ol.style.Style[] | ol.FeatureStyleFunction | ol.StyleFunction);
|
||||
|
||||
/**
|
||||
* Get the feature's style function.
|
||||
@@ -1858,11 +1858,11 @@ declare module ol {
|
||||
* of styles, or a function that takes a resolution and returns an array of
|
||||
* styles. If it is `null` the feature has no style (a `null` style).
|
||||
* @param {ol.style.Style|Array.<ol.style.Style>|
|
||||
* ol.FeatureStyleFunction} style Style for this feature.
|
||||
* ol.FeatureStyleFunction|ol.StyleFunction} style Style for this feature.
|
||||
* @api stable
|
||||
* @observable
|
||||
*/
|
||||
setStyle(style: (ol.style.Style | ol.style.Style[] | ol.FeatureStyleFunction)): void;
|
||||
setStyle(style: (ol.style.Style | ol.style.Style[] | ol.FeatureStyleFunction | ol.StyleFunction)): void;
|
||||
|
||||
/**
|
||||
* Set the feature id. The feature id is considered stable and may be used when
|
||||
@@ -10590,7 +10590,7 @@ declare module ol {
|
||||
* @api
|
||||
*/
|
||||
clone(): ol.style.Style;
|
||||
|
||||
|
||||
/**
|
||||
* Get the geometry to be rendered.
|
||||
* @return {string|ol.geom.Geometry|ol.StyleGeometryFunction}
|
||||
|
||||
Reference in New Issue
Block a user