move typescript-interfaces to interfaces and indentations in promise.d.ts