xpict 0.2.0 → 0.2.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.
@@ -4,9 +4,9 @@ export type EachOptions<Data> = {
4
4
  data: Data;
5
5
  index: number;
6
6
  };
7
- export type EachFunction<Data> = (options: EachOptions<Data>) => any[];
7
+ export type EachFunction<Data, Item> = (options: EachOptions<Data>) => Item[];
8
8
  export type RepeatLayerOptions<Data, Item> = {
9
- each: EachFunction<Data>;
9
+ each: EachFunction<Data, Item>;
10
10
  layer: (item: Item, index: number) => Layer<Data>;
11
11
  when?: WhenFunction<Data>;
12
12
  x: Axis<Data>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xpict",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Xpict é uma biblioteca para a geração de imagens padronizadas a partir de modelos declarativos.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",