astro-portabletext
Advanced tools
Comparing version 0.9.0-next.2 to 0.9.0-next.3
@@ -113,3 +113,3 @@ import type { | ||
*/ | ||
export interface Props<N extends TypedObject = ArbitraryTypedObject> { | ||
export interface Props<N extends TypedObject> { | ||
/** | ||
@@ -153,4 +153,5 @@ * Portable Text node | ||
* @example | ||
* import type { List, Props } from "astro-portabletext/types"; | ||
* const props = Astro.props as Props<List>; | ||
* import type { List, Props as $ } from "astro-portabletext/types"; | ||
* | ||
* export type Props = $<List>; | ||
*/ | ||
@@ -165,4 +166,5 @@ export type List = ToolkitPortableTextList; | ||
* @example | ||
* import type { ListItem, Props } from "astro-portabletext/types"; | ||
* const props = Astro.props as Props<ListItem>; | ||
* import type { ListItem, Props as $ } from "astro-portabletext/types"; | ||
* | ||
* export type Props = $<ListItem>; | ||
*/ | ||
@@ -180,2 +182,3 @@ export type ListItem = ToolkitPortableTextListItem; | ||
export interface Mark< | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
MarkDef extends Record<string, any> | undefined = undefined | ||
@@ -182,0 +185,0 @@ > extends ToolkitNestedPortableTextSpan { |
{ | ||
"name": "astro-portabletext", | ||
"version": "0.9.0-next.2", | ||
"version": "0.9.0-next.3", | ||
"type": "module", | ||
@@ -34,3 +34,3 @@ "description": "Render Portable Text with Astro", | ||
"type": "git", | ||
"url": "git+https://github.com/theisel/astro-portabletext.git", | ||
"url": "https://github.com/theisel/astro-portabletext.git", | ||
"directory": "astro-portabletext" | ||
@@ -37,0 +37,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25252
308