Skip to content

Commit f0fefbc

Browse files
Fixed incorrect types on new send notification methods
1 parent 56c5b0a commit f0fefbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/WebPush/WebPushManager.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ public actor WebPushManager: Sendable {
501501
/// - expiration: The expiration of the push message, after wich delivery will no longer be attempted.
502502
/// - urgency: The urgency of the delivery of the push message.
503503
/// - logger: The logger to use for status updates. If not provided, the background activity logger will be used instead. When running in a server environment, your contextual logger should be used instead giving you full control of logging and metadata.
504-
public func send(
505-
notification: some Encodable&Sendable,
504+
public func send<Contents>(
505+
notification: PushMessage.Notification<Contents>,
506506
to subscriber: some SubscriberProtocol,
507507
deduplicationTopic topic: Topic? = nil,
508508
expiration: Expiration = .recommendedMaximum,
@@ -531,8 +531,8 @@ public actor WebPushManager: Sendable {
531531
/// - urgency: The urgency of the delivery of the push message.
532532
/// - logger: The logger to use for status updates. If not provided, the background activity logger will be used instead. When running in a server environment, your contextual logger should be used instead giving you full control of logging and metadata.
533533
@inlinable
534-
public func send(
535-
notification: some Encodable&Sendable,
534+
public func send<Contents>(
535+
notification: PushMessage.Notification<Contents>,
536536
to subscriber: some SubscriberProtocol,
537537
encodableDeduplicationTopic: some Encodable,
538538
expiration: Expiration = .recommendedMaximum,

0 commit comments

Comments
 (0)