Plugin middleware setup in typescript

yep i’m firing issue but not sure do they ned a doc change or it’s a code