Skip to content

Commit 64fe8c1

Browse files
ElektrojungeAtWorkaciidgh
authored andcommitted
Document TargetType and LibraryType enum cases
1 parent 9d8540d commit 64fe8c1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Sources/PackageDescription4/Product.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ public class Product: Encodable {
9797

9898
/// The different types of a library product.
9999
public enum LibraryType: String, Encodable {
100+
/// A statically linked library.
100101
case `static`
102+
/// A dynamically linked library.
101103
case `dynamic`
102104
}
103105

Sources/PackageDescription4/Target.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ public final class Target {
1818

1919
/// The different types of a target.
2020
public enum TargetType: String, Encodable {
21+
/// A regular target.
2122
case regular
23+
/// A test target.
2224
case test
25+
/// A system framework target.
2326
case system
2427
}
2528

0 commit comments

Comments
 (0)