@datocms/astro 0.3.1 → 0.3.2

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@datocms/astro",
3
3
  "description": "A set of components and utilities to work faster with DatoCMS in Astro projects.",
4
4
  "type": "module",
5
- "version": "0.3.1",
5
+ "version": "0.3.2",
6
6
  "sideEffects": false,
7
7
  "repository": {
8
8
  "type": "git",
@@ -12,13 +12,18 @@ import {
12
12
  import Node from './Node.astro';
13
13
  import type { BlockComponents, InlineItemComponents, ItemLinkComponents, Overrides } from './types';
14
14
 
15
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
16
- interface Props<R1 extends DatocmsRecord = any, R2 extends DatocmsRecord = any> {
17
- data: StructuredText<R1, R2> | Document | DastNode | null | undefined;
18
-
19
- blockComponents?: BlockComponents<R1, R2>;
20
- itemLinkComponents?: ItemLinkComponents<R1, R2>;
21
- inlineItemComponents?: InlineItemComponents<R1, R2>;
15
+ // It would be better to type this as:
16
+ //
17
+ // interface Props<R1 extends DatocmsRecord = any, R2 extends DatocmsRecord = any>
18
+ //
19
+ // but it's currently not possible: https://github.com/withastro/roadmap/discussions/601#discussioncomment-10333959
20
+
21
+ interface Props {
22
+ data: StructuredText<DatocmsRecord, DatocmsRecord> | Document | DastNode | null | undefined;
23
+
24
+ blockComponents?: BlockComponents<DatocmsRecord, DatocmsRecord>;
25
+ itemLinkComponents?: ItemLinkComponents<DatocmsRecord, DatocmsRecord>;
26
+ inlineItemComponents?: InlineItemComponents<DatocmsRecord, DatocmsRecord>;
22
27
  overrides?: Overrides;
23
28
  }
24
29