diff --git a/native/redux/manage-pins-permission-migration.js b/native/redux/manage-pins-permission-migration.js --- a/native/redux/manage-pins-permission-migration.js +++ b/native/redux/manage-pins-permission-migration.js @@ -9,11 +9,12 @@ } from 'lib/types/thread-types.js'; type ThreadStoreThreadInfos = RawThreadInfos; -type TargetMemberInfo = MemberInfo | ThreadCurrentUserInfo; const adminRoleName = 'Admins'; -function addManagePinsThreadPermissionToUser( +function addManagePinsThreadPermissionToUser< + TargetMemberInfo: MemberInfo | ThreadCurrentUserInfo, +>( threadInfo: RawThreadInfo, member: TargetMemberInfo, threadID: string,