Skip to content

Commit

Permalink
fix: typing, but in a very ugly way
Browse files Browse the repository at this point in the history
  • Loading branch information
kenerwin88 committed Jan 11, 2023
1 parent 969a160 commit 344c676
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import bondage from './bondage';
import * as results from './results';
import YarnBound from './yarn-bound';
const { OptionsResult, TextResult, CommandResult } = bondage;

YarnBound.OptionsResult = OptionsResult;
YarnBound.TextResult = TextResult;
YarnBound.CommandResult = CommandResult;
YarnBound.OptionsResult = OptionsResult as unknown as results.OptionsResult;
YarnBound.TextResult = TextResult as unknown as results.TextResult;
YarnBound.CommandResult = CommandResult as unknown as results.CommandResult;
export default YarnBound;
8 changes: 4 additions & 4 deletions src/yarn-bound.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import bondage from './bondage';
import parseLine from './line-parser';

import { CommandResult, OptionsResult, TextResult } from './results';

interface props {
dialogue: string;
Expand All @@ -13,9 +13,9 @@ interface props {
}

export default class YarnBound {
static OptionsResult: typeof bondage.OptionsResult;
static TextResult: typeof bondage.TextResult;
static CommandResult: typeof bondage.CommandResult;
static OptionsResult: OptionsResult;
static TextResult: TextResult;
static CommandResult: CommandResult;
public handleCommand: any;
public combineTextAndOptionsResults: any;
public bondage: any;
Expand Down

0 comments on commit 344c676

Please sign in to comment.