From 632e433addae0de7f7190abae989cc018361a8c4 Mon Sep 17 00:00:00 2001 From: Ayo Date: Fri, 28 Jul 2023 10:29:10 +0200 Subject: [PATCH] chore: remove long example --- src/deserialize.ts | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) 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"]`);