Skip to content

Commit

Permalink
Export flag classes for portability in other libraries (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewish authored Apr 9, 2021
1 parent 22c8bb1 commit 83e6327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/flags/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ abstract class AbstractFlag<T> implements IFlag<T> {
protected abstract parse(stringValue: string): T;
}

class SingleValueFlag<T> extends AbstractFlag<T> {
export class SingleValueFlag<T> extends AbstractFlag<T> {
constructor(name: string, defaultValue: T, private readonly parser: (singleValue: string) => T) {
super(name, defaultValue);
}
Expand All @@ -112,7 +112,7 @@ class SingleValueFlag<T> extends AbstractFlag<T> {
}
}

class SetFlag<T> extends AbstractFlag<Set<T>> {
export class SetFlag<T> extends AbstractFlag<Set<T>> {
constructor(
name: string,
defaultValue: Set<T>,
Expand Down

0 comments on commit 83e6327

Please sign in to comment.