Skip to content

Commit

Permalink
Moved security details connector type to converter options.
Browse files Browse the repository at this point in the history
  • Loading branch information
bm64 committed Dec 11, 2024
1 parent ca8de19 commit 6bda093
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SecurityDetails/SecurityDetailsConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class SecurityDetailsConnector extends MorningstarConnector {
) {
super(options);

switch (options.type) {
switch (options.converter?.type) {
case 'TrailingPerformance':
default:
this.converter = new TrailingPerformanceConverter({
Expand Down
4 changes: 2 additions & 2 deletions src/SecurityDetails/SecurityDetailsOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import type {


export interface SecurityDetailsConverterOptions extends MorningstarConverterOptions {
// Nothing to add yet
type?: SecurityDetailsConverterType
}


Expand All @@ -58,8 +58,8 @@ export interface SecurityDetailsMetadata extends MorningstarMetadata {

export interface SecurityDetailsOptions extends MorningstarOptions {
security?: MorningstarSecurityOptions,
type?: SecurityDetailsConverterType
viewId?: string,
converter?: SecurityDetailsConverterOptions
}

export type SecurityDetailsConverterType = (
Expand Down

0 comments on commit 6bda093

Please sign in to comment.