returns(annotation:)

Creates a signature that returns a value with the given annotation.

Declaration

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

Parameters

  • annotation: The annotation of the return value.

Returns

A new signature with the return value component.