Skip to content

Commit

Permalink
fix: improve Identity types (#250)
Browse files Browse the repository at this point in the history
* fix: improve Identity types

Class Identity extends EventEmitter in the JS file,
but it's not typed for TS.

* use correct emitter class
  • Loading branch information
bukowskiadam authored Sep 8, 2023
1 parent e2b12af commit cde6bf2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/identity.d.ts
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit cde6bf2

Please sign in to comment.