Documentation Language: Swift

Function

typeAliasCode(for:prefix:)

Swift typealias code representation for a given data type

func typeAliasCode(for dataType: GIR.Datatype, prefix: String = "") -> String

Parameters

dataType

The data type that represents a typealias

prefix

A prefix to use for the public typealias

Return Value

The Swift code representingg the type alias