import Feature, {FeatureLike} from '../../../src/ol/Feature.js'; import Point from '../../../src/ol/geom/Point.js'; import VectorLayer, { Options as VectorLayerOptions, } from '../../../src/ol/layer/Vector.js'; import VectorSource from '../../../src/ol/source/Vector.js'; const options: VectorLayerOptions>> = { source: new VectorSource({ features: [new Feature(new Point([0, 0]))], }), }; export const layer1 = new VectorLayer(options); export const layer2: VectorLayer>> = new VectorLayer({ source: new VectorSource({ features: [new Feature(new Point([0, 0]))], }), }); const createLayer = ( options?: VectorLayerOptions>, ) => new VectorLayer>(options); export const layer3 = createLayer({ source: new VectorSource({ features: [new Feature(new Point([0, 0]))], }), });