Skip to content

Commit 4fbd297

Browse files
committed
Fix for latest literal
1 parent 275da30 commit 4fbd297

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/typed_operation/operations/property_builder.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
module TypedOperation
44
module Operations
55
class PropertyBuilder
6+
include Literal::Types
7+
68
def initialize(typed_operation, parameter_name, type_signature, options)
79
@typed_operation = typed_operation
810
@name = parameter_name
@@ -51,7 +53,7 @@ def type_nilable?
5153
end
5254

5355
def union_with_nil_to_support_nil_default
54-
@signature = Literal::Types::UnionType.new(@signature, NilClass) if has_default_value_nil?
56+
@signature = _Union(@signature, NilClass) if has_default_value_nil?
5557
end
5658

5759
def has_default_value_nil?

0 commit comments

Comments
 (0)