@@ -1021,9 +1021,6 @@ public struct BridgeJSLink {
10211021 for skeleton in exportedSkeletons {
10221022 for proto in skeleton. protocols {
10231023 printer. write ( lines: renderJSDoc ( documentation: proto. documentation, parameters: [ ] ) )
1024- // Inherited requirements come from `extends`, mirroring the Swift
1025- // side where the refining wrapper picks them up from the base
1026- // protocols' extensions.
10271024 let extendsClause =
10281025 inheritedProtocolTSNames ( of: proto, in: exportedSkeletons)
10291026 . map { " extends \( $0. joined ( separator: " , " ) ) " } ?? " "
@@ -1687,9 +1684,6 @@ public struct BridgeJSLink {
16871684 }
16881685 }
16891686
1690- /// Resolves public TypeScript names without changing the skeleton's Swift type identities.
1691- /// TypeScript names of the `@JS` protocols `proto` refines, resolved across
1692- /// every linked skeleton so a renamed base protocol renders as its JS name.
16931687 private func inheritedProtocolTSNames( of proto: ExportedProtocol , in skeletons: [ ExportedSkeleton ] ) -> [ String ] ? {
16941688 guard let inherited = proto. inheritedJSProtocols, !inherited. isEmpty else { return nil }
16951689 return inherited. map { baseName in
@@ -1702,6 +1696,7 @@ public struct BridgeJSLink {
17021696 }
17031697 }
17041698
1699+ /// Resolves public TypeScript names without changing the skeleton's Swift type identities.
17051700 private func resolveTypeScriptType( _ type: BridgeType ) -> String {
17061701 return Self . resolveTypeScriptType ( type, exportedSkeletons: skeletons. compactMap ( \. exported) )
17071702 }
0 commit comments