File tree 6 files changed +10
-10
lines changed
6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 14
14
#if canImport(Darwin)
15
15
import Foundation
16
16
#else
17
- // `@preconcrrency` is for `JSONDecoder`/`JSONEncoder`.
18
- @preconcurrency import Foundation
17
+ @ preconcurrency import class Foundation . JSONEncoder
18
+ @preconcurrency import class Foundation. JSONDecoder
19
19
#endif
20
20
21
21
/// Converter between generated and HTTP currency types.
Original file line number Diff line number Diff line change 14
14
#if canImport(Darwin)
15
15
import Foundation
16
16
#else
17
- @preconcurrency import Foundation
17
+ @preconcurrency import class Foundation. NSLock
18
18
#endif
19
19
20
20
/// A protected-by-locks storage for ``redactedHeaderFields``.
Original file line number Diff line number Diff line change 14
14
#if canImport(Darwin)
15
15
import Foundation
16
16
#else
17
- // `@preconcrrency` is for `URL`.
18
- @preconcurrency import Foundation
17
+ @ preconcurrency import struct Foundation . URL
18
+ @preconcurrency import protocol Foundation. LocalizedError
19
19
#endif
20
20
21
21
/// An error thrown by a client performing an OpenAPI operation.
Original file line number Diff line number Diff line change 14
14
#if canImport(Darwin)
15
15
import Foundation
16
16
#else
17
- // `@preconcrrency` is for `Data`/`URLQueryItem`.
18
- @preconcurrency import Foundation
17
+ @ preconcurrency import struct Foundation . Data
18
+ @preconcurrency import struct Foundation. URLQueryItem
19
19
#endif
20
20
21
21
/// A header field used in an HTTP request or response.
Original file line number Diff line number Diff line change 14
14
#if canImport(Darwin)
15
15
import Foundation
16
16
#else
17
- // `@preconcrrency` is for `URL`.
18
- @preconcurrency import Foundation
17
+ @preconcurrency import struct Foundation. URL
19
18
#endif
20
19
21
20
/// OpenAPI document-agnostic HTTP client used by OpenAPI document-specific,
Original file line number Diff line number Diff line change 14
14
#if canImport(Darwin)
15
15
import Foundation
16
16
#else
17
- @preconcurrency import Foundation
17
+ @preconcurrency import struct Foundation. URL
18
+ @preconcurrency import struct Foundation. URLComponents
18
19
#endif
19
20
20
21
/// OpenAPI document-agnostic HTTP server used by OpenAPI document-specific,
You can’t perform that action at this time.
0 commit comments