Currently, the type we use for Keyrings does not include a "destroy" function. On the other hand, Ledger and Trezor keyring have a function for this and is named dispose for Trezor and destroy for Ledger.
At the moment Ledger and Trezor keyrings are not implementing the Keyring type, but would be beneficial to:
See also original discussion: MetaMask/KeyringController#233 (comment)
Currently, the type we use for Keyrings does not include a "destroy" function. On the other hand, Ledger and Trezor keyring have a function for this and is named
disposefor Trezor anddestroyfor Ledger.At the moment Ledger and Trezor keyrings are not implementing the Keyring type, but would be beneficial to:
destroymethod on Keyring typedisposemethod todestroySee also original discussion: MetaMask/KeyringController#233 (comment)