From 6d651eb9781850352c86102f351fa754c459c321 Mon Sep 17 00:00:00 2001 From: Manuel Sanchez Date: Wed, 6 May 2026 15:46:38 +0200 Subject: [PATCH] refactor: consolidate text type for ButtonOptions and LinkOptions --- index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 607328f..fcd16d0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,10 +1,12 @@ -export type ButtonOptions = { +type TextOptions = { text: string; +}; + +export type ButtonOptions = TextOptions & { onClick: () => void; }; -export type LinkOptions = { - text: string; +export type LinkOptions = TextOptions & { href: string; };