Define
Introduction
This module defines common base types across platforms, providing unified error handling and callback mechanisms for API calls.
Features
Callback Mechanism:Provides unified completion callback closure types
Data Structures
CompletionClosure
Provides basic type definitions, including error handling structures, callback closure types, and reactive state management tools.
public typealias CompletionClosure = (Result<Void, ErrorInfo>) -> Void
ErrorInfo
Error information structure
Property | Type | Description |
code | Int | Error code. |
message | String | Error message description. |
StatePublisher
State publisher
StatePropertySelector
State property selector protocol
StatePublisherSelector
State publisher selector
ListResultCompletionClosure
List result completion callback interface
Interface for asynchronous operation result callbacks that return paginated lists.