|
| 1 | +// This file is a workaround to generate the desired output. |
| 2 | +// Workaround for https://github.com/OpenAPITools/openapi-generator/issues/13417 |
| 3 | + |
| 4 | +// May contain unused imports in some cases |
| 5 | +// @ts-ignore |
| 6 | +import type { FeeEstimateResult } from './fee-estimate-result'; |
| 7 | +// May contain unused imports in some cases |
| 8 | +// @ts-ignore |
| 9 | +import type { GetFeaturesEnabledResult } from './get-features-enabled-result'; |
| 10 | +// May contain unused imports in some cases |
| 11 | +// @ts-ignore |
| 12 | +import type { GetSupportedTokensItem } from './get-supported-tokens-item'; |
| 13 | +// May contain unused imports in some cases |
| 14 | +// @ts-ignore |
| 15 | +import type { GetSupportedTokensResult } from './get-supported-tokens-result'; |
| 16 | +// May contain unused imports in some cases |
| 17 | +// @ts-ignore |
| 18 | +import type { PrepareTransactionResult } from './prepare-transaction-result'; |
| 19 | +// May contain unused imports in some cases |
| 20 | +// @ts-ignore |
| 21 | +import type { SignAndSendTransactionResult } from './sign-and-send-transaction-result'; |
| 22 | +// May contain unused imports in some cases |
| 23 | +// @ts-ignore |
| 24 | +import type { SignTransactionResult } from './sign-transaction-result'; |
| 25 | +// May contain unused imports in some cases |
| 26 | +// @ts-ignore |
| 27 | +import type { TransferTransactionResult } from './transfer-transaction-result'; |
| 28 | + |
| 29 | +type TransferTransactionResultWithMethod = TransferTransactionResult & { |
| 30 | + method: 'transferTransaction'; |
| 31 | +} |
| 32 | + |
| 33 | +type FeeEstimateResultWithMethod = FeeEstimateResult & { |
| 34 | + method: 'feeEstimate'; |
| 35 | +} |
| 36 | + |
| 37 | +type GetFeaturesEnabledResultWithMethod = GetFeaturesEnabledResult & { |
| 38 | + method: 'getFeaturesEnabled'; |
| 39 | +} |
| 40 | + |
| 41 | +type PrepareTransactionResultWithMethod = PrepareTransactionResult & { |
| 42 | + method: 'prepareTransaction'; |
| 43 | +} |
| 44 | + |
| 45 | +type GetSupportedTokensResultWithMethod = GetSupportedTokensResult & { |
| 46 | + method: 'getSupportedTokens'; |
| 47 | +} |
| 48 | + |
| 49 | +type SignAndSendTransactionResultWithMethod = SignAndSendTransactionResult & { |
| 50 | + method: 'signAndSendTransaction'; |
| 51 | +} |
| 52 | + |
| 53 | +type SignTransactionResultWithMethod = SignTransactionResult & { |
| 54 | + method: 'signTransaction'; |
| 55 | +} |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +/** |
| 60 | + * @type SolanaRpcResult |
| 61 | + * @export |
| 62 | + */ |
| 63 | +export type SolanaRpcResult = FeeEstimateResultWithMethod | GetFeaturesEnabledResultWithMethod | GetSupportedTokensResultWithMethod | PrepareTransactionResultWithMethod | SignAndSendTransactionResultWithMethod | SignTransactionResultWithMethod | TransferTransactionResultWithMethod; |
| 64 | + |
0 commit comments