Skip to content

Commit

Permalink
fix: improve parameter receiving type
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Aug 16, 2021
1 parent 6f1baaa commit 2e77727
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/viewer/src/defaultProps.ts
Expand Up @@ -66,8 +66,8 @@ export default {
terrainProviderViewModels: Array as PropType<Array<Cesium.ProviderViewModel>>,
imageryProvider: Object as PropType<Cesium.ImageryProvider>,
terrainProvider: Object as PropType<Cesium.TerrainProvider>,
skyBox: Object as PropType<Cesium.SkyBox>,
skyAtmosphere: Object as PropType<Cesium.SkyAtmosphere>,
skyBox: [Object, Boolean] as PropType<Cesium.SkyBox>,
skyAtmosphere: [Object, Boolean] as PropType<Cesium.SkyAtmosphere>,
fullscreenElement: {
type: [String, Element] as PropType<string | Element>
},
Expand Down Expand Up @@ -99,8 +99,8 @@ export default {
type: Boolean,
default: true
},
creditContainer: String,
creditViewport: String,
creditContainer: [String, Element] as PropType<string | Element>,
creditViewport: [String, Element] as PropType<string | Element>,
dataSources: Object as PropType<Cesium.DataSourceCollection>,
terrainExaggeration: {
type: Number,
Expand Down

0 comments on commit 2e77727

Please sign in to comment.