refactor: add type for worker configuration attribute