diff --git a/src/olcs.ts b/src/olcs.ts index f8496e91..578d9cfa 100644 --- a/src/olcs.ts +++ b/src/olcs.ts @@ -1,6 +1,8 @@ import OLCesium from './olcs/OLCesium.js'; export default OLCesium; +export type {OLCesiumOptions} from './olcs/OLCesium.js'; + export {default as AbstractSynchronizer} from './olcs/AbstractSynchronizer.js'; export {default as RasterSynchronizer} from './olcs/RasterSynchronizer.js'; export {default as VectorSynchronizer} from './olcs/VectorSynchronizer.js'; diff --git a/src/olcs/OLCesium.ts b/src/olcs/OLCesium.ts index 22642c2f..6be6185b 100644 --- a/src/olcs/OLCesium.ts +++ b/src/olcs/OLCesium.ts @@ -61,13 +61,13 @@ type SceneOptions = { msaaSamples?: number; } -type OLCesiumOptions = { +export type OLCesiumOptions = { map: Map, time?: () => JulianDate, target?: Element | string, createSynchronizers?: (map: Map, scene: Scene, dataSourceCollection: DataSourceCollection) => AbstractSynchronizer[], stopOpenLayersEventsPropagation?: boolean, - sceneOptions?: SceneOptions + sceneOptions?: Omit } // FIXME: remove this when all the synchronizers are migrated to typescript.