katucharts.js 0.2.8 → 0.2.10

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.
@@ -2,11 +2,12 @@ import { type HTMLAttributes } from 'react';
2
2
  import type { KatuChartsOptions } from '../types/options';
3
3
  /**
4
4
  * Options accepted by the component. {@link KatuChartsOptions} drives editor
5
- * autocomplete when an object literal is written inline, while the plain-object
6
- * arm lets options assembled in a separate `const` be passed straight through
7
- * without a type annotation or cast.
5
+ * autocomplete when an object literal is written inline, while the `object` arm
6
+ * lets options assembled elsewhere a separate `const`, or a value typed with
7
+ * the caller's own interface — be passed straight through without a type
8
+ * annotation or cast.
8
9
  */
9
- export type KatuChartsReactOptions = KatuChartsOptions | Record<string, unknown>;
10
+ export type KatuChartsReactOptions = KatuChartsOptions | object;
10
11
  interface KatuChartsStatic {
11
12
  chart(container: string | HTMLElement, options: KatuChartsReactOptions): KatuChartInstance;
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katucharts.js",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "D3.js charting library with a simple declarative interface",
5
5
  "type": "module",
6
6
  "main": "./dist/katucharts.umd.js",