From cde6bf2a336bbc1a97a5f82c256b4b18d783c2c5 Mon Sep 17 00:00:00 2001 From: Adam Bukowski Date: Fri, 8 Sep 2023 10:28:30 +0200 Subject: [PATCH] fix: improve Identity types (#250) * fix: improve Identity types Class Identity extends EventEmitter in the JS file, but it's not typed for TS. * use correct emitter class --- src/identity.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/identity.d.ts b/src/identity.d.ts index f20cff4d..bea75081 100644 --- a/src/identity.d.ts +++ b/src/identity.d.ts @@ -1,7 +1,9 @@ +import type { TinyEmitter } from 'tiny-emitter'; + /** - * Provides Identity functionalty to a web page + * Provides Identity functionality to a web page */ -export class Identity { +export class Identity extends TinyEmitter { /** * @param {object} options * @param {string} options.clientId - Example: "1234567890abcdef12345678"