Skip to content

Commit

Permalink
[cesium] add constructor and removeProperty to PropertyBag (Definitel…
Browse files Browse the repository at this point in the history
…yTyped#42803)

* [cesium] add constructor definition for PropertyBag

* Cesium - add removeProperty to PropertyBag

* Add return type to removeProperty

* Make constructor value optional

* Don't make parameters on callback optional
  • Loading branch information
amcasey authored Mar 4, 2020
1 parent 09dc238 commit df8a7d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions types/cesium/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,14 @@ declare namespace Cesium {
readonly isConstant: boolean;
propertyNames: string[];

addProperty(propertyName: string, value?: any, createPropertyCallback?: (value?: any) => void): void;
constructor(value?: object, createPropertyCallback?: (value?: any) => void);

addProperty(propertyName: string, value?: any, createPropertyCallback?: (value: any) => void): void;
equals(other?: Property): boolean;
getValue(time: JulianDate, result?: object): object;
hasProperty(propertyName: string): boolean;
merge(source: object, createPropertyCallback?: (value?: any) => void): void;
merge(source: object, createPropertyCallback?: (value: any) => void): void;
removeProperty(propertyName: string): void;
}

class ArcGisImageServerTerrainProvider extends TerrainProvider {
Expand Down

0 comments on commit df8a7d9

Please sign in to comment.