Skip to content

Commit b2b6ff4

Browse files
committed
export CalendarType
1 parent 2347ef7 commit b2b6ff4

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

src/IntlDate/IntlDate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { fromGregorian, toGregorian } from '../date-converter/date-converter';
2+
import CalendarType from '../types/CalendarType';
23

34
/**
45
* @author Khalid H. Alharisi

src/date-converter/date-converter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import CalendarType from '../types/CalendarType';
2+
13
const MAX_ITERATIONS = 50;
24

35
/**

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import IntlDate from './IntlDate/IntlDate';
2+
import CalendarType from './types/CalendarType';
23

3-
export { IntlDate };
4+
export { IntlDate, CalendarType };

src/types/CalendarType.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ type CalendarType =
66
| 'islamic-civil'
77
| 'islamic-tbla'
88
| 'persian';
9+
10+
export default CalendarType;

0 commit comments

Comments
 (0)