Skip to content

Commit

Permalink
refactor: remove useless constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihil committed Aug 8, 2023
1 parent 9efb66f commit 9f0cf64
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ import { BaseTrace } from '@voiceflow/base-types';

import { serializeResolvedMarkup } from '../markupUtils/markupUtils';
import { ResolvedJSONVariant } from '../response.types';
import { VariableContext } from '../variableContext/variableContext';
import { BaseVariant } from './base.variant';

export class JSONVariant extends BaseVariant<ResolvedJSONVariant> {
constructor(rawVariant: ResolvedJSONVariant, varContext: VariableContext) {
super(rawVariant, varContext);
}

get type() {
return this.rawVariant.type;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import { BaseTrace } from '@voiceflow/base-types';

import { ResolvedTextVariant } from '../response.types';
import { VariableContext } from '../variableContext/variableContext';
import { BaseVariant } from './base.variant';

export class TextVariant extends BaseVariant<ResolvedTextVariant> {
constructor(rawVariant: ResolvedTextVariant, varContext: VariableContext) {
super(rawVariant, varContext);
}

get type() {
return this.rawVariant.type;
}
Expand Down

0 comments on commit 9f0cf64

Please sign in to comment.