mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
Merge pull request #19866 from pvdyck/master
Mapbox-gl fix: stops are optional in StyleFunction
This commit is contained in:
6
types/mapbox-gl/index.d.ts
vendored
6
types/mapbox-gl/index.d.ts
vendored
@@ -395,7 +395,7 @@ declare namespace mapboxgl {
|
||||
timeout?: number;
|
||||
maximumAge?: number;
|
||||
}
|
||||
|
||||
|
||||
export class FitBoundsOptions {
|
||||
maxZoom?: number;
|
||||
}
|
||||
@@ -723,7 +723,7 @@ declare namespace mapboxgl {
|
||||
angleWidth(p: Point): number;
|
||||
|
||||
angleWithSep(x: number, y: number): number;
|
||||
|
||||
|
||||
static convert(a: PointLike): Point;
|
||||
}
|
||||
|
||||
@@ -920,7 +920,7 @@ declare namespace mapboxgl {
|
||||
}
|
||||
|
||||
export interface StyleFunction {
|
||||
stops: any[][];
|
||||
stops?: any[][];
|
||||
property?: string;
|
||||
base?: number;
|
||||
type?: "identity" | "exponential" | "interval" | "categorical";
|
||||
|
||||
Reference in New Issue
Block a user