Skip to content

pantoken / plugins/pantoken/deprecations/src / deprecationShims

ฟังก์ชัน: deprecationShims()

deprecationShims(ledger): PantokenPlugin

เบต้า

สร้างปลั๊กอิน deprecation-shim จาก ledger.

พารามิเตอร์

ledger

DeprecationLedger

ค่า DeprecationLedger (เช่น formats/tokens/deprecations.json).

คืนค่า

PantokenPlugin

เป็น PantokenPlugin ซึ่งฮุก tokens จะเพิ่ม shim หนึ่งตัวต่อแต่ละรายการ.