made a promise a type