Skip to content

Commit d9b11b2

Browse files
committed
add docc for public functions
1 parent b37976c commit d9b11b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/OpenAPILambda.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public protocol OpenAPILambda: Sendable {
4040
}
4141

4242
extension OpenAPILambda {
43+
/// Returns the Lambda handler function for this OpenAPI Lambda implementation.
44+
/// - Returns: A handler function that can be used with AWS Lambda Runtime
4345
public static func handler() throws -> @Sendable (Event, LambdaContext) async throws -> Output {
4446
try OpenAPILambdaHandler<Self>().handler
4547
}

0 commit comments

Comments
 (0)