Skip to content

Commit

Permalink
fix(core): enum ods html anchor element rel
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Dec 13, 2023
1 parent ae98d6e commit 1f6e1a0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/common/core/src/types/ods-html-anchor-element-rel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
* See rel attribute valid for <a> and <area> on
* https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
*/
export enum OdsHTMLAnchorElementRel {
enum OdsHTMLAnchorElementRel {
alternate = 'alternate',
author = 'author',
bookmark = 'bookmark',
canonical = 'canonical',
'dns-prefetch' = 'dns-prefetch',
dnsPrefetch = 'dns-prefetch',
external = 'external',
help = 'help',
icon = 'icon',
Expand All @@ -26,13 +26,16 @@ export enum OdsHTMLAnchorElementRel {
preload = 'preload',
prerender = 'prerender',
prev = 'prev',
'privacy-policy' = 'privacy-policy',
privacyPolicy = 'privacy-policy',
search = 'search',
stylesheet = 'stylesheet',
tag = 'tag',
'terms-of-service' = 'terms-of-service'
termsOfService = 'terms-of-service'
}

export type OdsHTMLAnchorElementRelUnion = `${OdsHTMLAnchorElementRel}`;
const OdsHTMLAnchorElementRelList = Object.freeze(Object.values(OdsHTMLAnchorElementRel));

export const OdsHTMLAnchorElementRelList = Object.keys(OdsHTMLAnchorElementRel).map((key) => OdsHTMLAnchorElementRel[key as OdsHTMLAnchorElementRelUnion]);
export {
OdsHTMLAnchorElementRel,
OdsHTMLAnchorElementRelList,
}

0 comments on commit 1f6e1a0

Please sign in to comment.