Skip to content

pantoken-root / plugins/pantoken/deprecations/src / deprecationShims

Funkcja: deprecationShims() ​

deprecationShims(ledger): PantokenPlugin

Beta

Utwórz wtyczkę deprecation-shim z ledger.

Parametry ​

ledger ​

DeprecationLedger

Ten DeprecationLedger (np. formats/tokens/deprecations.json).

Zwraca ​

PantokenPlugin

Plugin PantokenPlugin, którego hook tokens dołącza po jednym shimie do każdego wpisu.