@dra2020/dra-types 1.6.0 → 1.6.1

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/layer.d.ts CHANGED
@@ -10,7 +10,10 @@ export interface UserLayerMeta {
10
10
  published?: string;
11
11
  official?: boolean;
12
12
  }
13
- export declare type UserLayerRef = {
13
+ export declare type UserLayerMetaIndex = {
14
+ [id: string]: UserLayerMeta;
15
+ };
16
+ export interface UserLayerRef {
14
17
  id: string;
15
18
  fill: boolean;
16
19
  stroke: boolean;
@@ -19,7 +22,7 @@ export declare type UserLayerRef = {
19
22
  strokeOpacity: number;
20
23
  fillColor: string;
21
24
  fillOpacity: number;
22
- };
25
+ }
23
26
  export declare type UserLayerRefIndex = {
24
27
  [id: string]: UserLayerRef;
25
28
  };
package/lib/layer.ts CHANGED
@@ -12,7 +12,12 @@ export interface UserLayerMeta
12
12
  official?: boolean
13
13
  }
14
14
 
15
- export type UserLayerRef = {
15
+ export type UserLayerMetaIndex = {
16
+ [id: string]: UserLayerMeta
17
+ }
18
+
19
+ export interface UserLayerRef
20
+ {
16
21
  id: string,
17
22
  fill: boolean,
18
23
  stroke: boolean,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/dra-types",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Shared types used between client and server.",
5
5
  "main": "dist/dra-types.js",
6
6
  "types": "./dist/all.d.ts",