diff --git a/.gitignore b/.gitignore index 0792935..e7c5e30 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ lib .shards app *.dwarf +*.lock +bin/ameba diff --git a/shard.yml b/shard.yml index df0c397..be387ba 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: promise -version: 1.1.2 +version: 1.1.3 development_dependencies: ameba: diff --git a/src/promise/deferred_promise.cr b/src/promise/deferred_promise.cr index 4a70c61..7a8708c 100644 --- a/src/promise/deferred_promise.cr +++ b/src/promise/deferred_promise.cr @@ -30,7 +30,7 @@ class Promise::DeferredPromise(Input) < Promise t end - def type + def type : Class Input end @@ -96,7 +96,7 @@ class Promise::DeferredPromise(Input) < Promise end # Used to create a generic promise if all we care about is success or failure - def then + def then : DeferredPromise(Nil) self.then { nil } end