Contents

ArgumentValue

A primitive value type for argument specifications that is @Generable.

Declaration

enum ArgumentValue

Overview

let city: ArgumentValue = "San Francisco"
let count: ArgumentValue = 5
let score: ArgumentValue = 0.95

Unlike StructuredValue, this enum only contains primitive types (no recursive array/dictionary) which allows it to work with the @Generable macro.

Topics

Values

Converting values

See Also

Supporting types