diff --git a/src/deserialize.ts b/src/deserialize.ts index a9c6867..4391950 100644 --- a/src/deserialize.ts +++ b/src/deserialize.ts @@ -4,29 +4,7 @@ * @param parser Custom parser to be used * @returns The deserialized JSON data * @see Usage examples in 👉 https://git.sr.ht/~ayoayco/astro-resume#astro-resume - * @example - * - * To make all `Astro.props` available in your client script: - * - * ```astro - * --- - * import Serialize from "@ayco/astro-resume"; - * export interface Props { - * hello: string; - * isOkay: boolean; - * } - * --- - * - * - * - * - * ``` - **/ +**/ export function deserialize(id: string, parser?: (serialized: string)=>any): T { const elements = document.querySelectorAll(`script#${id}[type="application/json"]`);