Current section

Files

Jump to
lustre src lustre internals constants.ffi.mjs
Raw

src/lustre/internals/constants.ffi.mjs

import Dict from "../../../gleam_stdlib/dict.mjs";
import { new$ as set_new } from "../../../gleam_stdlib/gleam/set.mjs";
const EMPTY_DICT = /* @__PURE__ */ Dict.new();
const EMPTY_SET = /* @__PURE__*/ set_new();
export const empty_dict = () => EMPTY_DICT;
export const empty_set = () => EMPTY_SET;
export const document = () => globalThis?.document;
export const NAMESPACE_HTML = "http://www.w3.org/1999/xhtml";
export const ELEMENT_NODE = 1;
export const TEXT_NODE = 3;
export const DOCUMENT_FRAGMENT_NODE = 11;
export const SUPPORTS_MOVE_BEFORE = /* @__PURE__ */ !!globalThis.HTMLElement?.prototype?.moveBefore;