@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
|
@@ -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
|
-
//
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|