Skip to content

Commit

Permalink
Make some function properties publicly available
Browse files Browse the repository at this point in the history
  • Loading branch information
david-swift committed Feb 23, 2023
1 parent b98f84e commit dc1c940
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/ActionKit/Model/Data/Function.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ public struct Function: Identifiable, Equatable, Bindable {
/// The function's identifier.
public let id: String
/// The function's name.
var name: String
public var name: String
/// A short description of the function.
var description: String
public var description: String

/// The input parameters.
private(set) var dataInput: [Parameter]
/// The output parameters.
private(set) var dataOutput: [Parameter]

/// The input parameters with the control flow.
var input: [Parameter] {
public var input: [Parameter] {
get {
if id == .input {
return []
Expand All @@ -37,7 +37,7 @@ public struct Function: Identifiable, Equatable, Bindable {
}
}
/// The output parameters with the control flow.
var output: [Parameter] {
public var output: [Parameter] {
get {
if id == .output {
return []
Expand Down

0 comments on commit dc1c940

Please sign in to comment.