Skip to content

Commit 79c30d6

Browse files
committed
Use suggested signature
1 parent 9b3fc9f commit 79c30d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stream-chat/util.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def self.get_sort_fields(sort)
1616
end
1717

1818
# Normalizes a timestamp to RFC 3339 / ISO 8601 string format.
19-
sig { params(timestamp: T.anything).returns(T.untyped) }
19+
sig { params(timestamp: T.any(DateTime, Time, String)).returns(String)}
2020
def self.normalize_timestamp(timestamp)
2121
case timestamp
2222
when DateTime then timestamp.rfc3339

0 commit comments

Comments
 (0)