Skip to content

pantoken / plugins/pantoken/deprecations/src / deprecationShims

Fonction: deprecationShims()

deprecationShims(ledger): PantokenPlugin

Bêta

Créer le plugin deprecation-shim à partir d'un ledger.

Paramètres

ledger

DeprecationLedger

Le DeprecationLedger (p. ex. formats/tokens/deprecations.json).

Retourne

PantokenPlugin

Un PantokenPlugin dont le hook tokens ajoute un shim par entrée.