diff --git a/src/Resumable.astro b/src/Resumable.astro index b68c505..068e2c1 100644 --- a/src/Resumable.astro +++ b/src/Resumable.astro @@ -1,7 +1,14 @@ --- type Primitive = string | number | boolean | null | undefined; + export interface Props { + /** + * The id that the client script will pass to the `resume()` function + */ id: string; + /** + * The data to be serialized and accessed in the client script with `resume()` + */ data: Record; } const {id, data} = Astro.props;