Skip to content

Commit 72e14f1

Browse files
authored
Merge pull request #111 from WAKayser/patch-2
LinkableMarkProps all are optional
2 parents 834c843 + 3faa560 commit 72e14f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -636,27 +636,27 @@ export type LinkableMarkProps = {
636636
/**
637637
* if set, the mark element will be wrapped in a <a> link element
638638
*/
639-
href: ConstantAccessor<string>;
639+
href?: ConstantAccessor<string>;
640640
/**
641641
* the relationship of the target object to the link object (e.g. "noopener")
642642
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#rel
643643
*/
644-
rel: ConstantAccessor<string>;
644+
rel?: ConstantAccessor<string>;
645645
/**
646646
* the link target mime type, e.g. "text/csv"
647647
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#type
648648
*/
649-
type: ConstantAccessor<string>;
649+
type?: ConstantAccessor<string>;
650650
/**
651651
* the target of the link, e.g. "_blank" or "_self"
652652
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#target
653653
*/
654-
target: ConstantAccessor<'_self' | '_blank' | '_parent' | '_top' | string>;
654+
target?: ConstantAccessor<'_self' | '_blank' | '_parent' | '_top' | string>;
655655
/**
656656
* if set to true, the link will be downloaded instead of navigating to it
657657
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download
658658
*/
659-
download: ConstantAccessor<boolean>;
659+
download?: ConstantAccessor<boolean>;
660660
// allow data-sveltekit-* attributes on the link element, e.g. data-sveltekit-reload
661661
[key: `data-sveltekit-${string}`]: string | boolean;
662662
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy