@trezor/connect 9.4.2 → 9.4.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +90 -9
- package/README.md +1 -1
- package/lib/api/applyFlags.js +1 -1
- package/lib/api/applySettings.js +1 -1
- package/lib/api/authenticateDevice.js +1 -1
- package/lib/api/authorizeCoinjoin.js +1 -1
- package/lib/api/backupDevice.js +1 -1
- package/lib/api/binance/api/binanceGetAddress.js +2 -1
- package/lib/api/binance/api/binanceGetPublicKey.js +2 -1
- package/lib/api/binance/api/binanceSignTransaction.js +2 -1
- package/lib/api/binance/binanceSignTx.js +1 -1
- package/lib/api/bitcoin/Fees.js +2 -2
- package/lib/api/bitcoin/TransactionComposer.d.ts +3 -3
- package/lib/api/bitcoin/TransactionComposer.js +2 -2
- package/lib/api/bitcoin/refTx.js +1 -1
- package/lib/api/blockchainDisconnect.js +1 -1
- package/lib/api/blockchainEvmRpcCall.d.ts +16 -0
- package/lib/api/blockchainEvmRpcCall.js +45 -0
- package/lib/api/cancelCoinjoinAuthorization.js +1 -1
- package/lib/api/cardano/api/cardanoGetAddress.js +2 -1
- package/lib/api/cardano/api/cardanoGetNativeScriptHash.js +2 -1
- package/lib/api/cardano/api/cardanoGetPublicKey.js +2 -1
- package/lib/api/cardano/api/cardanoSignTransaction.js +2 -1
- package/lib/api/cardano/cardanoAddressParameters.js +1 -1
- package/lib/api/cardano/cardanoAuxiliaryData.js +1 -1
- package/lib/api/cardano/cardanoCertificate.js +1 -1
- package/lib/api/cardano/cardanoInputs.d.ts +8 -8
- package/lib/api/cardano/cardanoInputs.js +1 -1
- package/lib/api/cardano/cardanoOutputs.d.ts +22 -22
- package/lib/api/cardano/cardanoOutputs.js +1 -1
- package/lib/api/cardano/cardanoTokenBundle.d.ts +6 -6
- package/lib/api/cardano/cardanoTokenBundle.js +1 -1
- package/lib/api/changeLanguage.js +1 -1
- package/lib/api/changePin.js +1 -1
- package/lib/api/cipherKeyValue.js +1 -1
- package/lib/api/common/paramsValidator.js +1 -1
- package/lib/api/composeTransaction.d.ts +9 -3
- package/lib/api/composeTransaction.js +7 -4
- package/lib/api/eos/api/eosGetPublicKey.js +2 -1
- package/lib/api/eos/api/eosSignTransaction.js +2 -1
- package/lib/api/eos/eosSignTx.d.ts +3 -3
- package/lib/api/ethereum/api/ethereumGetAddress.js +2 -1
- package/lib/api/ethereum/api/ethereumGetPublicKey.js +2 -1
- package/lib/api/ethereum/api/ethereumSignMessage.d.ts +1 -1
- package/lib/api/ethereum/api/ethereumSignMessage.js +2 -1
- package/lib/api/ethereum/api/ethereumSignTransaction.d.ts +1 -1
- package/lib/api/ethereum/api/ethereumSignTransaction.js +13 -7
- package/lib/api/ethereum/api/ethereumSignTypedData.d.ts +58 -57
- package/lib/api/ethereum/api/ethereumSignTypedData.js +3 -2
- package/lib/api/ethereum/api/ethereumVerifyMessage.js +2 -1
- package/lib/api/ethereum/ethereumDefinitions.d.ts +21 -21
- package/lib/api/ethereum/ethereumDefinitions.js +6 -5
- package/lib/api/firmware/getBinary.d.ts +4 -5
- package/lib/api/firmware/getBinary.js +12 -13
- package/lib/api/firmware/getBinaryForFirmwareUpgrade.d.ts +3 -3
- package/lib/api/firmware/getBinaryForFirmwareUpgrade.js +2 -2
- package/lib/api/firmware/index.d.ts +1 -1
- package/lib/api/firmware/index.js +2 -1
- package/lib/api/firmware/x509certificate.js +3 -5
- package/lib/api/getAccountDescriptor.js +1 -1
- package/lib/api/getAddress.js +1 -1
- package/lib/api/getCoinInfo.d.ts +3 -0
- package/lib/api/getCoinInfo.js +1 -1
- package/lib/api/getFirmwareHash.js +1 -1
- package/lib/api/getOwnershipId.js +1 -1
- package/lib/api/getOwnershipProof.js +1 -1
- package/lib/api/getPublicKey.js +1 -1
- package/lib/api/index.d.ts +2 -1
- package/lib/api/index.js +5 -3
- package/lib/api/loadDevice.d.ts +14 -0
- package/lib/api/loadDevice.js +44 -0
- package/lib/api/nem/api/nemGetAddress.js +2 -1
- package/lib/api/nem/api/nemSignTransaction.js +2 -1
- package/lib/api/pushTransaction.js +1 -1
- package/lib/api/rebootToBootloader.js +1 -1
- package/lib/api/recoveryDevice.js +1 -1
- package/lib/api/requestLogin.js +1 -1
- package/lib/api/resetDevice.js +1 -2
- package/lib/api/ripple/api/rippleGetAddress.js +2 -1
- package/lib/api/ripple/api/rippleSignTransaction.js +2 -1
- package/lib/api/setBrightness.js +1 -1
- package/lib/api/setBusy.js +1 -1
- package/lib/api/signMessage.js +1 -1
- package/lib/api/solana/api/solanaGetAddress.js +2 -1
- package/lib/api/solana/api/solanaGetPublicKey.js +2 -1
- package/lib/api/solana/api/solanaSignTransaction.js +2 -1
- package/lib/api/stellar/api/stellarGetAddress.js +2 -1
- package/lib/api/stellar/api/stellarSignTransaction.js +2 -1
- package/lib/api/stellar/stellarSignTx.js +1 -1
- package/lib/api/tezos/api/tezosGetAddress.js +2 -1
- package/lib/api/tezos/api/tezosGetPublicKey.js +2 -1
- package/lib/api/tezos/api/tezosSignTransaction.js +2 -1
- package/lib/api/tezos/tezosSignTx.js +1 -1
- package/lib/api/unlockPath.js +1 -1
- package/lib/api/verifyMessage.js +1 -1
- package/lib/backend/Blockchain.d.ts +3 -0
- package/lib/backend/Blockchain.js +6 -6
- package/lib/constants/errors.d.ts +49 -38
- package/lib/constants/errors.js +10 -0
- package/lib/constants/firmware.d.ts +2 -0
- package/lib/constants/firmware.js +5 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +4 -1
- package/lib/constants/nem.d.ts +3 -3
- package/lib/constants/utxo.d.ts +3 -0
- package/lib/constants/utxo.js +5 -0
- package/lib/core/AbstractMethod.d.ts +13 -5
- package/lib/core/AbstractMethod.js +50 -24
- package/lib/core/index.js +41 -30
- package/lib/core/onCallFirmwareUpdate.d.ts +2 -2
- package/lib/core/onCallFirmwareUpdate.js +6 -6
- package/lib/data/DataManager.d.ts +0 -181
- package/lib/data/DataManager.js +40 -6
- package/lib/data/analyticsInfo.js +4 -2
- package/lib/data/coinInfo.d.ts +14 -0
- package/lib/data/config.d.ts +20 -22
- package/lib/data/config.js +15 -40
- package/lib/data/connectSettings.js +10 -4
- package/lib/data/deviceAuthenticityConfig.js +20 -0
- package/lib/data/deviceAuthenticityConfigTypes.d.ts +32 -23
- package/lib/data/firmwareInfo.d.ts +1 -1
- package/lib/data/models.d.ts +9 -0
- package/lib/data/models.js +9 -0
- package/lib/data/version.d.ts +2 -1
- package/lib/data/version.js +3 -2
- package/lib/device/Device.d.ts +144 -36
- package/lib/device/Device.js +270 -113
- package/lib/device/DeviceCommands.js +4 -4
- package/lib/device/DeviceList.d.ts +13 -21
- package/lib/device/DeviceList.js +54 -168
- package/lib/device/checkFirmwareRevision.js +4 -4
- package/lib/device/prompts.js +3 -2
- package/lib/device/resolveDescriptorForTaproot.d.ts +1 -1
- package/lib/events/call.d.ts +5 -5
- package/lib/events/call.js +2 -2
- package/lib/events/core.d.ts +4 -3
- package/lib/events/device.d.ts +0 -6
- package/lib/events/device.js +0 -6
- package/lib/events/transport.d.ts +1 -1
- package/lib/factory.d.ts +6 -6
- package/lib/factory.js +132 -136
- package/lib/impl/dynamic.d.ts +33 -0
- package/lib/impl/dynamic.js +75 -0
- package/lib/index-browser.d.ts +3 -1
- package/lib/index-browser.js +0 -3
- package/lib/index.d.ts +3 -1
- package/lib/index.js +1 -13
- package/lib/types/api/applySettings.d.ts +13 -13
- package/lib/types/api/authenticateDevice.d.ts +33 -24
- package/lib/types/api/authorizeCoinjoin.d.ts +10 -10
- package/lib/types/api/binance/index.d.ts +143 -143
- package/lib/types/api/binance/index.js +1 -1
- package/lib/types/api/bitcoin/index.d.ts +11 -11
- package/lib/types/api/bitcoin/index.js +1 -1
- package/lib/types/api/blockchainEvmRpcCall.d.ts +4 -0
- package/lib/types/api/{checkFirmwareAuthenticity.js → blockchainEvmRpcCall.js} +1 -1
- package/lib/types/api/cancelCoinjoinAuthorization.d.ts +1 -1
- package/lib/types/api/cardano/index.d.ts +507 -507
- package/lib/types/api/changeLanguage.d.ts +6 -6
- package/lib/types/api/cipherKeyValue.d.ts +8 -8
- package/lib/types/api/cipherKeyValue.js +1 -1
- package/lib/types/api/composeTransaction.d.ts +13 -7
- package/lib/types/api/eos/index.d.ts +525 -525
- package/lib/types/api/eos/index.js +1 -1
- package/lib/types/api/ethereum/index.d.ts +100 -100
- package/lib/types/api/firmwareUpdate.d.ts +5 -5
- package/lib/types/api/getAccountDescriptor.d.ts +4 -4
- package/lib/types/api/getAddress.d.ts +32 -32
- package/lib/types/api/getOwnershipId.d.ts +24 -24
- package/lib/types/api/getOwnershipProof.d.ts +28 -28
- package/lib/types/api/getPublicKey.d.ts +24 -24
- package/lib/types/api/getPublicKey.js +1 -1
- package/lib/types/api/index.d.ts +4 -8
- package/lib/types/api/init.d.ts +4 -2
- package/lib/types/api/loadDevice.d.ts +4 -0
- package/lib/types/api/loadDevice.js +3 -0
- package/lib/types/api/nem/index.d.ts +612 -612
- package/lib/types/api/nem/index.js +1 -1
- package/lib/types/api/nemGetAddress.d.ts +6 -6
- package/lib/types/api/pushTransaction.d.ts +3 -3
- package/lib/types/api/recoveryDevice.d.ts +9 -9
- package/lib/types/api/requestLogin.d.ts +25 -25
- package/lib/types/api/ripple/index.d.ts +21 -21
- package/lib/types/api/ripple/index.js +1 -1
- package/lib/types/api/solana/index.d.ts +23 -23
- package/lib/types/api/solana/index.js +1 -1
- package/lib/types/api/stellar/index.d.ts +582 -582
- package/lib/types/api/stellar/index.js +1 -1
- package/lib/types/api/tezos/index.d.ts +120 -120
- package/lib/types/api/tezos/index.js +1 -1
- package/lib/types/api/unlockPath.d.ts +2 -2
- package/lib/types/coinInfo.d.ts +231 -224
- package/lib/types/device.d.ts +33 -14
- package/lib/types/device.js +3 -1
- package/lib/types/fees.d.ts +19 -19
- package/lib/types/firmware.d.ts +1 -1
- package/lib/types/params.d.ts +23 -19
- package/lib/types/settings.d.ts +17 -10
- package/lib/types/utils.d.ts +1 -0
- package/lib/types/utils.js +3 -0
- package/lib/utils/addressUtils.js +2 -2
- package/lib/utils/assetUtils.d.ts +1 -1
- package/lib/utils/assetUtils.js +6 -6
- package/lib/utils/assets.js +1 -1
- package/lib/utils/assets.native.js +1 -1
- package/lib/utils/deviceFeaturesUtils.js +1 -1
- package/lib/utils/proxy-event-emitter.d.ts +21 -0
- package/lib/utils/proxy-event-emitter.js +65 -0
- package/lib/utils/uiPromiseManager.d.ts +2 -1
- package/lib/utils/uiPromiseManager.js +3 -3
- package/package.json +12 -12
- package/lib/api/checkFirmwareAuthenticity.d.ts +0 -11
- package/lib/api/checkFirmwareAuthenticity.js +0 -56
- package/lib/types/api/checkFirmwareAuthenticity.d.ts +0 -11
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { Params, BundledParams, Response } from '../params';
|
|
2
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
|
+
import { Params, BundledParams, Response } from '../params';
|
|
3
3
|
export type GetPublicKey = Static<typeof GetPublicKey>;
|
|
4
|
-
export declare const GetPublicKey: import("@
|
|
5
|
-
path: import("@
|
|
6
|
-
showOnTrezor: import("@
|
|
7
|
-
suppressBackupWarning: import("@
|
|
8
|
-
chunkify: import("@
|
|
4
|
+
export declare const GetPublicKey: import("@trezor/schema-utils").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
5
|
+
path: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TString, import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>]>;
|
|
6
|
+
showOnTrezor: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
7
|
+
suppressBackupWarning: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
8
|
+
chunkify: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
9
9
|
}>, import("@trezor/schema-utils").TObject<{
|
|
10
|
-
coin: import("@
|
|
11
|
-
crossChain: import("@
|
|
12
|
-
scriptType: import("@
|
|
13
|
-
ignoreXpubMagic: import("@
|
|
14
|
-
ecdsaCurveName: import("@
|
|
15
|
-
unlockPath: import("@
|
|
16
|
-
address_n: import("@
|
|
17
|
-
mac: import("@
|
|
10
|
+
coin: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
11
|
+
crossChain: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
12
|
+
scriptType: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TLiteral<"SPENDADDRESS">, import("@trezor/schema-utils").TLiteral<"SPENDMULTISIG">, import("@trezor/schema-utils").TLiteral<"SPENDWITNESS">, import("@trezor/schema-utils").TLiteral<"SPENDP2SHWITNESS">, import("@trezor/schema-utils").TLiteral<"SPENDTAPROOT">]>>;
|
|
13
|
+
ignoreXpubMagic: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
14
|
+
ecdsaCurveName: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
15
|
+
unlockPath: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TObject<{
|
|
16
|
+
address_n: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>;
|
|
17
|
+
mac: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
18
18
|
}>>;
|
|
19
19
|
}>]>;
|
|
20
20
|
export type HDNodeResponse = Static<typeof HDNodeResponse>;
|
|
21
21
|
export declare const HDNodeResponse: import("@trezor/schema-utils").TObject<{
|
|
22
|
-
path: import("@
|
|
23
|
-
serializedPath: import("@
|
|
24
|
-
childNum: import("@
|
|
25
|
-
xpub: import("@
|
|
26
|
-
xpubSegwit: import("@
|
|
27
|
-
descriptorChecksum: import("@
|
|
28
|
-
chainCode: import("@
|
|
29
|
-
publicKey: import("@
|
|
30
|
-
fingerprint: import("@
|
|
31
|
-
depth: import("@
|
|
22
|
+
path: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>;
|
|
23
|
+
serializedPath: import("@trezor/schema-utils").TString;
|
|
24
|
+
childNum: import("@trezor/schema-utils").TNumber;
|
|
25
|
+
xpub: import("@trezor/schema-utils").TString;
|
|
26
|
+
xpubSegwit: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
27
|
+
descriptorChecksum: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
28
|
+
chainCode: import("@trezor/schema-utils").TString;
|
|
29
|
+
publicKey: import("@trezor/schema-utils").TString;
|
|
30
|
+
fingerprint: import("@trezor/schema-utils").TNumber;
|
|
31
|
+
depth: import("@trezor/schema-utils").TNumber;
|
|
32
32
|
}>;
|
|
33
33
|
export declare function getPublicKey(params: Params<GetPublicKey>): Response<HDNodeResponse>;
|
|
34
34
|
export declare function getPublicKey(params: BundledParams<GetPublicKey>): Response<HDNodeResponse[]>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HDNodeResponse = exports.GetPublicKey = void 0;
|
|
4
|
+
const schema_utils_1 = require("@trezor/schema-utils");
|
|
4
5
|
const constants_1 = require("../../constants");
|
|
5
6
|
const params_1 = require("../params");
|
|
6
|
-
const schema_utils_1 = require("@trezor/schema-utils");
|
|
7
7
|
exports.GetPublicKey = schema_utils_1.Type.Intersect([
|
|
8
8
|
params_1.GetPublicKey,
|
|
9
9
|
schema_utils_1.Type.Object({
|
package/lib/types/api/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { blockchainDisconnect } from './blockchainDisconnect';
|
|
|
10
10
|
import { blockchainEstimateFee } from './blockchainEstimateFee';
|
|
11
11
|
import { blockchainGetAccountBalanceHistory } from './blockchainGetAccountBalanceHistory';
|
|
12
12
|
import { blockchainGetCurrentFiatRates } from './blockchainGetCurrentFiatRates';
|
|
13
|
+
import { blockchainEvmRpcCall } from './blockchainEvmRpcCall';
|
|
13
14
|
import { blockchainGetFiatRatesForTimestamps } from './blockchainGetFiatRatesForTimestamps';
|
|
14
15
|
import { blockchainGetTransactions } from './blockchainGetTransactions';
|
|
15
16
|
import { blockchainSetCustomBackend } from './blockchainSetCustomBackend';
|
|
@@ -27,10 +28,8 @@ import { cardanoSignTransaction } from './cardanoSignTransaction';
|
|
|
27
28
|
import { changeLanguage } from './changeLanguage';
|
|
28
29
|
import { changePin } from './changePin';
|
|
29
30
|
import { changeWipeCode } from './changeWipeCode';
|
|
30
|
-
import { checkFirmwareAuthenticity } from './checkFirmwareAuthenticity';
|
|
31
31
|
import { cipherKeyValue } from './cipherKeyValue';
|
|
32
32
|
import { composeTransaction } from './composeTransaction';
|
|
33
|
-
import { disableWebUSB } from './disableWebUSB';
|
|
34
33
|
import { dispose } from './dispose';
|
|
35
34
|
import { eosGetPublicKey } from './eosGetPublicKey';
|
|
36
35
|
import { eosSignTransaction } from './eosSignTransaction';
|
|
@@ -62,10 +61,9 @@ import { pushTransaction } from './pushTransaction';
|
|
|
62
61
|
import { rebootToBootloader } from './rebootToBootloader';
|
|
63
62
|
import { recoveryDevice } from './recoveryDevice';
|
|
64
63
|
import { removeAllListeners } from './removeAllListeners';
|
|
65
|
-
import { renderWebUSBButton } from './renderWebUSBButton';
|
|
66
64
|
import { requestLogin } from './requestLogin';
|
|
67
|
-
import { requestWebUSBDevice } from './requestWebUSBDevice';
|
|
68
65
|
import { resetDevice } from './resetDevice';
|
|
66
|
+
import { loadDevice } from './loadDevice';
|
|
69
67
|
import { rippleGetAddress } from './rippleGetAddress';
|
|
70
68
|
import { rippleSignTransaction } from './rippleSignTransaction';
|
|
71
69
|
import { setBrightness } from './setBrightness';
|
|
@@ -101,6 +99,7 @@ export interface TrezorConnect {
|
|
|
101
99
|
blockchainEstimateFee: typeof blockchainEstimateFee;
|
|
102
100
|
blockchainGetAccountBalanceHistory: typeof blockchainGetAccountBalanceHistory;
|
|
103
101
|
blockchainGetCurrentFiatRates: typeof blockchainGetCurrentFiatRates;
|
|
102
|
+
blockchainEvmRpcCall: typeof blockchainEvmRpcCall;
|
|
104
103
|
blockchainGetFiatRatesForTimestamps: typeof blockchainGetFiatRatesForTimestamps;
|
|
105
104
|
blockchainGetTransactions: typeof blockchainGetTransactions;
|
|
106
105
|
blockchainSetCustomBackend: typeof blockchainSetCustomBackend;
|
|
@@ -119,8 +118,6 @@ export interface TrezorConnect {
|
|
|
119
118
|
changeWipeCode: typeof changeWipeCode;
|
|
120
119
|
cipherKeyValue: typeof cipherKeyValue;
|
|
121
120
|
composeTransaction: typeof composeTransaction;
|
|
122
|
-
disableWebUSB: typeof disableWebUSB;
|
|
123
|
-
requestWebUSBDevice: typeof requestWebUSBDevice;
|
|
124
121
|
dispose: typeof dispose;
|
|
125
122
|
eosGetPublicKey: typeof eosGetPublicKey;
|
|
126
123
|
eosSignTransaction: typeof eosSignTransaction;
|
|
@@ -152,9 +149,9 @@ export interface TrezorConnect {
|
|
|
152
149
|
rebootToBootloader: typeof rebootToBootloader;
|
|
153
150
|
recoveryDevice: typeof recoveryDevice;
|
|
154
151
|
removeAllListeners: typeof removeAllListeners;
|
|
155
|
-
renderWebUSBButton: typeof renderWebUSBButton;
|
|
156
152
|
requestLogin: typeof requestLogin;
|
|
157
153
|
resetDevice: typeof resetDevice;
|
|
154
|
+
loadDevice: typeof loadDevice;
|
|
158
155
|
rippleGetAddress: typeof rippleGetAddress;
|
|
159
156
|
rippleSignTransaction: typeof rippleSignTransaction;
|
|
160
157
|
setBrightness: typeof setBrightness;
|
|
@@ -174,6 +171,5 @@ export interface TrezorConnect {
|
|
|
174
171
|
unlockPath: typeof unlockPath;
|
|
175
172
|
verifyMessage: typeof verifyMessage;
|
|
176
173
|
wipeDevice: typeof wipeDevice;
|
|
177
|
-
checkFirmwareAuthenticity: typeof checkFirmwareAuthenticity;
|
|
178
174
|
}
|
|
179
175
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/types/api/init.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ConnectSettingsPublic, Manifest } from '../settings';
|
|
2
|
-
export
|
|
2
|
+
export type InitFullSettings<ExtraSettingsType extends Record<string, any>> = {
|
|
3
3
|
manifest: Manifest;
|
|
4
|
-
} & Partial<ConnectSettingsPublic>
|
|
4
|
+
} & Partial<Omit<ConnectSettingsPublic, 'manifest'> & Omit<ExtraSettingsType, keyof ConnectSettingsPublic>>;
|
|
5
|
+
export type InitType<ExtraSettingsType extends Record<string, any>> = (settings: InitFullSettings<ExtraSettingsType>) => Promise<void>;
|
|
6
|
+
export declare function init<ExtraSettingsType extends Record<string, any>>(settings: InitFullSettings<ExtraSettingsType>): Promise<void>;
|
|
5
7
|
//# sourceMappingURL=init.d.ts.map
|