flowerbi 3.9.5 → 3.10.0

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.
@@ -56,7 +56,7 @@ export declare type CalculationJson = {
56
56
  aggregation: number;
57
57
  } | {
58
58
  first: CalculationJson;
59
- operator: "+" | "-" | "*" | "/";
59
+ operator: "+" | "-" | "*" | "/" | "??";
60
60
  second: CalculationJson;
61
61
  };
62
62
  /**
@@ -100,7 +100,7 @@ export declare function getColumnPropsOnly<T extends QuerySelect>(select: T): Co
100
100
  * @param select the `select` object from a query
101
101
  */
102
102
  export declare function getColumnsOnly(select: QuerySelect): QueryColumn<any>[];
103
- export declare type Calculation<S extends QuerySelect> = number | AggregatePropsOnly<S> | [Calculation<S>, "+" | "-" | "*" | "/", Calculation<S>];
103
+ export declare type Calculation<S extends QuerySelect> = number | AggregatePropsOnly<S> | [Calculation<S>, "+" | "-" | "*" | "/" | "??", Calculation<S>];
104
104
  /**
105
105
  * The `select` object of a query has named properties of type {@link SelectMember}.
106
106
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowerbi",
3
- "version": "3.9.5",
3
+ "version": "3.10.0",
4
4
  "author": "Daniel Earwicker <dan@earwicker.com>",
5
5
  "license": "MIT",
6
6
  "description": "FlowerBI: ultra-minimal BI analytics query and UI tools",
package/src/QueryJson.ts CHANGED
@@ -64,7 +64,7 @@ export type CalculationJson =
64
64
  | { aggregation: number }
65
65
  | {
66
66
  first: CalculationJson;
67
- operator: "+" | "-" | "*" | "/";
67
+ operator: "+" | "-" | "*" | "/" | "??";
68
68
  second: CalculationJson;
69
69
  };
70
70
 
package/src/queryModel.ts CHANGED
@@ -127,7 +127,7 @@ export function getColumnsOnly(select: QuerySelect) {
127
127
  .map((x) => x as QueryColumn<any>);
128
128
  }
129
129
 
130
- export type Calculation<S extends QuerySelect> = number | AggregatePropsOnly<S> | [Calculation<S>, "+" | "-" | "*" | "/", Calculation<S>];
130
+ export type Calculation<S extends QuerySelect> = number | AggregatePropsOnly<S> | [Calculation<S>, "+" | "-" | "*" | "/" | "??", Calculation<S>];
131
131
 
132
132
  /**
133
133
  * The `select` object of a query has named properties of type {@link SelectMember}.