Skip to content

pantoken / plugins/pantoken/deprecations/src / deprecationShims

Função: deprecationShims()

deprecationShims(ledger): PantokenPlugin

Beta

Crie o plugin deprecation-shim a partir de um ledger.

Parâmetros

ledger

DeprecationLedger

O DeprecationLedger (por exemplo, formats/tokens/deprecations.json).

Retorna

PantokenPlugin

Um PantokenPlugin cujo gancho tokens adiciona um shim por entrada.