UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

11 lines (10 loc) 422 B
import { Reference } from 'alinea/core/Reference'; import type { HTMLProps } from 'react'; interface Anchor extends HTMLProps<HTMLAnchorElement> { 'data-id'?: string; 'data-entry'?: string; 'data-type'?: 'entry' | 'file' | 'url'; } export declare function referenceToAttributes(reference: Reference): Anchor; export declare function attributesToReference(attributes: Anchor): Reference | undefined; export {};