UNPKG

@gouvfr/dsfr-nexus

Version:

Le module `dsfr-nexus` est l'interface de ligne de commande (CLI) centrale du Système de Design de l’État - DSFR. Il offre des outils pour gérer et compiler les ressources du DSFR

24 lines (18 loc) 361 B
import { PageNode } from '../page-node.js'; class HeadingNode extends PageNode { constructor (data, state) { super(data, state); this._depth = data.depth; } get depth () { return this._depth; } get data () { return { ...super.data, depth: this.depth, }; } } HeadingNode.TYPE = 'heading'; export { HeadingNode };