Skip to content

Commit e718c62

Browse files
committed
chore: fixes after merge
1 parent ae433cd commit e718c62

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
Eddy Verbruggen https://github.com/EddyVerbruggen
44
Yermo Lamers https://github.com/Yermo
5+
Martin Guillon https://github.com/farfromrefug
56

67
# Contributors

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ The style can be set to one of the Mapbox style names or it can be the URL of yo
6565
6666
## Demo prerequisites
6767
```
68+
npm i
6869
npm run setup
6970
```
7071

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
},
1717
"scripts": {
18-
"setup": "npm i && ts-patch install",
18+
"setup": "ts-patch install",
1919
"build.angular": "ng-packagr -p src/angular/package.json -c src/angular/tsconfig.json",
2020
"clean": "rimraf ./plugin/**/*.d.ts ./plugin/**/*.js ./plugin/**/*.js.map plugin/node_modules plugin/package-lock.json plugin/README.md demo/node_modules demo-angular/node_modules",
2121
"tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d",

src/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ export * from './mapbox.ios';
66

77
// Export any shared classes, constants, etc.
88
export * from './mapbox.common';
9-

src/mapbox.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4088,7 +4088,7 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
40884088

40894089
// ----------------------------------------------------------------------------------
40904090

4091-
getLayers(nativeMap?: any): Promise<Array<LayerCommon>> {
4091+
getLayers(nativeMap?: any): Promise<LayerCommon[]> {
40924092
return new Promise((resolve, reject) => {
40934093
try {
40944094
const theMap = nativeMap || this._mapboxMapInstance;

src/mapbox.common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ export interface MapboxApi {
626626

627627
getLayer(name: string, nativeMap?: any): Promise<LayerCommon>;
628628

629-
getLayers(nativeMap?: any): Promise<Array<LayerCommon>>;
629+
getLayers(nativeMap?: any): Promise<LayerCommon[]>;
630630

631631
// addSource(options: AddSourceOptions): Promise<any>;
632632

@@ -773,7 +773,7 @@ export interface MapboxViewApi {
773773

774774
getLayer(name: string, nativeMap?: any): Promise<LayerCommon>;
775775

776-
getLayers(nativeMap?: any): Promise<Array<LayerCommon>>;
776+
getLayers(nativeMap?: any): Promise<LayerCommon[]>;
777777

778778
destroy(): Promise<any>;
779779

@@ -936,7 +936,7 @@ export abstract class MapboxViewCommonBase extends ContentView implements Mapbox
936936
getLayer(name: string, nativeMap?: any): Promise<LayerCommon> {
937937
return this.mapbox.getLayer(name, nativeMap);
938938
}
939-
getLayers(nativeMap?: any): Promise<Array<LayerCommon>> {
939+
getLayers(nativeMap?: any): Promise<LayerCommon[]> {
940940
return this.mapbox.getLayers(nativeMap);
941941
}
942942
destroy(): Promise<any> {

0 commit comments

Comments
 (0)