returns(annotation:)

Appends a return value with the given annotation to the signature.

Declaration

func returns(
    annotation: (
        any Parsable
    )? = nil
) -> Signature

Parameters

  • annotation: The annotation of the return value.

Returns

A new signature with the return value component appended.