Promise should be given the correct type. A buffer presumably.