Implemented TypeScript def for 'plugins/dialog'

Fixed some missing properties and comments in modules.