Skip to content

pantoken-root / 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).

Renvoie ​

PantokenPlugin

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