spelling: disposer

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref committed 2021-07-13 09:40:16 -04:00
1 parent bc961c4aa8
commit c63c52d8c8
2 files changed
+2 -2

No files matched your search

@@ -56,7 +56,7 @@ class TestCatalogCategory2 extends CatalogCategory {
}
describe("CatalogCategoryRegistry", () => {
it("should remove only the category registered when running the disopser", () => {
it("should remove only the category registered when running the disposer", () => {
const registry = new TestCatalogCategoryRegistry();
expect(registry.items.length).toBe(0);
+1 -1
View File
@@ -36,7 +36,7 @@ export abstract class IpcMain extends IpcRegistrar {
* Listen for broadcasts within your extension
* @param channel The channel to listen for broadcasts on
* @param listener The function that will be called with the arguments of the broadcast
* @returns An optional disopser, Lens will cleanup when the extension is disabled or uninstalled even if this is not called
* @returns An optional disposer, Lens will cleanup when the extension is disabled or uninstalled even if this is not called
*/
listen(channel: string, listener: (event: Electron.IpcRendererEvent, ...args: any[]) => any): Disposer {
const prefixedChannel = `extensions@${this[IpcPrefix]}:${channel}`;