Skip to content

Commit 3614702

Browse files
authored
Merge pull request #5 from p-x9/feature/add-default-param-name
add default param names to `SCFNotificationCallback`
2 parents fc7f07b + 32ef88d commit 3614702

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/SCFNotification/SCFNotificationCenter.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import Foundation
22

3-
public typealias SCFNotificationCallback<Observer: AnyObject, Object: AnyObject> = (CFNotificationCenter?, Observer?, CFNotificationName?, Object?, CFDictionary?) -> Void
3+
public typealias SCFNotificationCallback<Observer: AnyObject, Object: AnyObject> = (_ center: CFNotificationCenter?,
4+
_ observer: Observer?,
5+
_ name: CFNotificationName?,
6+
_ object: Object?,
7+
_ userInfo: CFDictionary?) -> Void
48

59

610
public class SCFNotificationCenter {

0 commit comments

Comments
 (0)