From 297e5af30abfccfec64e5a20bfb123874769db7d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 19 Feb 2020 23:52:09 -0500 Subject: [PATCH] Make Person the default export. --- src/Person.test.ts | 2 +- src/Person.ts | 2 +- src/TaxReturn.test.ts | 2 +- src/TaxReturn.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Person.test.ts b/src/Person.test.ts index f6fa6e2..d90a3cd 100644 --- a/src/Person.test.ts +++ b/src/Person.test.ts @@ -1,4 +1,4 @@ -import { Person, Relation } from './Person'; +import Person, { Relation } from './Person'; test('static constructors', () => { let p = Person.self('Billy Bob'); diff --git a/src/Person.ts b/src/Person.ts index d376fc9..5f0806c 100644 --- a/src/Person.ts +++ b/src/Person.ts @@ -4,7 +4,7 @@ export enum Relation { Dependent, }; -export class Person { +export default class Person { private _name: string; private _relation: Relation; diff --git a/src/TaxReturn.test.ts b/src/TaxReturn.test.ts index 852ae65..788222c 100644 --- a/src/TaxReturn.test.ts +++ b/src/TaxReturn.test.ts @@ -1,5 +1,5 @@ import TaxReturn from './TaxReturn'; -import { Person } from './Person'; +import Person from './Person'; import Form, { SupportsMultipleCopies } from './Form'; import { NotFoundError, InconsistencyError } from './Errors'; diff --git a/src/TaxReturn.ts b/src/TaxReturn.ts index 7bab4d8..940c965 100644 --- a/src/TaxReturn.ts +++ b/src/TaxReturn.ts @@ -1,5 +1,5 @@ import Form, { SupportsMultipleCopies, supportsMultipleCopies } from './Form'; -import { Person, Relation } from './Person'; +import Person, { Relation } from './Person'; import { NotFoundError, InconsistencyError, UnsupportedFeatureError } from './Errors'; export default class TaxReturn { -- 2.43.5