@react-motion-router/core
Version:
Declarative routing library for ReactJS ⚛ with animations baked in ⏮
20 lines (19 loc) • 927 B
TypeScript
import { MetaType } from "./common/types";
export default class MetaData {
private _map;
private mutationObserver;
constructor();
get(key: string | MetaType): string | [string, string][] | undefined;
set(key: string | MetaType, content?: string | [string, string][]): void;
has(key: string | MetaType): boolean;
delete(key: string | MetaType): void;
clear(): void;
entries(): IterableIterator<[`name=${string}` | `property=${string}` | `http-equiv=${string}` | `itemprop=${string}` | `charset=${string}`, string | undefined]>;
[Symbol.iterator](): IterableIterator<[`name=${string}` | `property=${string}` | `http-equiv=${string}` | `itemprop=${string}` | `charset=${string}`, string | undefined]>;
get size(): number;
private observeMutations;
private metaDataFromNode;
private getMetaKey;
private getMetaContent;
private updateMetaElement;
}