Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/avatarConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
BridgeResult,
BridgeEvent,
SdkOptions,
Provider,
} from './types'

const MAJOR_VERSION = '__WEBPACK_VERSION_STUB__'
Expand All @@ -20,7 +21,7 @@ class AvatarConnect extends EventEmitter {
private readonly bridge: Bridge

constructor(
providers = [],
providers: Provider[] = [],
{
bridgeUrl = DEFAULT_BRIDGE_URL,
maxWidth = 800,
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ interface ConfiguredProviderTuple extends Array<string | object> {
1: object
}

type Provider = string | ConfiguredProviderTuple
export type Provider = string | ConfiguredProviderTuple

export interface BridgeConfiguration {
providers: Provider[]
Expand Down