@versatiles/style 4.2.3 → 4.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/styles/index.d.ts +14 -6
- package/package.json +1 -1
package/dist/styles/index.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import type StyleBuilder from '../style_builder/style_builder.js';
|
|
2
2
|
import type { StyleBuilderOptions } from '../style_builder/types.js';
|
|
3
3
|
import type { MaplibreStyle } from '../types/maplibre.js';
|
|
4
|
-
export type {
|
|
4
|
+
export type { MaplibreStyle };
|
|
5
5
|
import Colorful from './colorful.js';
|
|
6
6
|
import Graybeard from './graybeard.js';
|
|
7
7
|
import Neutrino from './neutrino.js';
|
|
8
|
-
type
|
|
9
|
-
|
|
8
|
+
export type ColorfulOptions = StyleBuilderOptions<Colorful>;
|
|
9
|
+
export type GraybeardOptions = StyleBuilderOptions<Graybeard>;
|
|
10
|
+
export type NeutrinoOptions = StyleBuilderOptions<Neutrino>;
|
|
11
|
+
export type SomeStyleOptions = ColorfulOptions | GraybeardOptions | NeutrinoOptions;
|
|
12
|
+
type MakeStyle<T extends StyleBuilder<T>, O extends StyleBuilderOptions<T>> = ((options?: O) => MaplibreStyle) & {
|
|
13
|
+
getOptions: () => O;
|
|
10
14
|
};
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
15
|
+
export type ColorfulBuilder = MakeStyle<Colorful, ColorfulOptions>;
|
|
16
|
+
export type GraybeardBuilder = MakeStyle<Graybeard, GraybeardOptions>;
|
|
17
|
+
export type NeutrinoBuilder = MakeStyle<Neutrino, NeutrinoOptions>;
|
|
18
|
+
export type SomeStyle = ColorfulBuilder | GraybeardBuilder | NeutrinoBuilder;
|
|
19
|
+
export declare const colorful: ColorfulBuilder;
|
|
20
|
+
export declare const graybeard: GraybeardBuilder;
|
|
21
|
+
export declare const neutrino: NeutrinoBuilder;
|