mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
react-map-gl - Make mapboxApiAccessToken prop optional (#29241)
* Make mapboxApiAccessToken optional * Revise transformRequest
This commit is contained in:
committed by
Wesley Wigham
parent
e15cb60ee0
commit
b0b15a7a32
Vendored
+4
-4
@@ -23,20 +23,20 @@ export interface MapError {
|
||||
|
||||
export interface MapRequest {
|
||||
url: string;
|
||||
headers: {};
|
||||
credentials: string;
|
||||
headers?: { [index: string]: string };
|
||||
credentials?: string;
|
||||
}
|
||||
|
||||
export interface MapboxProps extends Partial<Viewport> {
|
||||
container?: {};
|
||||
mapboxApiAccessToken: string;
|
||||
mapboxApiAccessToken?: string;
|
||||
attributionControl?: boolean;
|
||||
preserveDrawingBuffer?: boolean;
|
||||
onLoad?: () => void;
|
||||
onError?: (e: MapError) => void;
|
||||
resuseMaps?: boolean;
|
||||
resuseMap?: boolean;
|
||||
transformRequest?: () => MapRequest;
|
||||
transformRequest?: (url?: string, resourceType?: string) => MapRequest;
|
||||
|
||||
mapStyle?: string | {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user