Just doing similar thing to demo code to add a new plugin:  And got:  Maybe there're some thong wrong with the TypeScript definition