chore: add documentation/comments to props
This commit is contained in:
parent
7b72595909
commit
9ccd6eb132
1 changed files with 7 additions and 0 deletions
|
@ -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<string, Primitive>;
|
||||
}
|
||||
const {id, data} = Astro.props;
|
||||
|
|
Loading…
Reference in a new issue