Implemented the TypeScript def for 'plugins/widget'