Skip to content

Commit 7c2e98d

Browse files
committed
fix: rework exports
1 parent 0721514 commit 7c2e98d

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/api/account/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './types'
1+
export type { RequestExportUsers, RequestExportGroups, RequestExportGroupsUsers, RequestExportPayments, RequestExportDeals, ExportInfo, FieldInfo, ExportedData } from './types'

src/api/deal/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './types'
1+
export type { RequestAddDeal, RequestUpdateDealStatus, ResponseDeal } from './types'

src/api/user/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './types'
1+
export type { RequestAddUser, RequestUpdateUserGroups, ResponseUser } from './types'

src/errors/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from './HttpError'
2-
export * from './FormatError'
3-
export * from './ServerError'
4-
export * from './TokenError'
1+
export { HttpError } from './HttpError'
2+
export { FormatError } from './FormatError'
3+
export { ServerError } from './ServerError'
4+
export { TokenError } from './TokenError'

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { UserApi } from './api/user/client'
44
import { RestClient } from './core/rest-client'
55
import type { Options } from './typings/lib'
66

7-
export * from './errors'
8-
export * from './typings'
9-
export * from './api/account'
10-
export * from './api/user'
11-
export * from './api/deal'
7+
export { HttpError, FormatError, ServerError, TokenError } from './errors'
8+
export type { System, User, Session, UserStatus, DealStatus, PaymentStatus, PaymentType, DealCurrency, Options, HttpMethod, GetCourseAction, RequestInit, JSONValue, RequireAtLeastOne, ExportApiResponse, ImportApiResponse } from './typings'
9+
export type { RequestExportUsers, RequestExportGroups, RequestExportGroupsUsers, RequestExportPayments, RequestExportDeals, ExportInfo, FieldInfo, ExportedData } from './api/account'
10+
export type { RequestAddUser, RequestUpdateUserGroups, ResponseUser } from './api/user'
11+
export type { RequestAddDeal, RequestUpdateDealStatus, ResponseDeal } from './api/deal'
1212

1313
export class GetCourse {
1414
private rest: RestClient

src/typings/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from './entities'
2-
export * from './lib'
3-
export * from './utility'
1+
export type { System, User, Session, UserStatus, DealStatus, PaymentStatus, PaymentType, DealCurrency } from './entities'
2+
export type { Options, HttpMethod, GetCourseAction, RequestInit } from './lib'
3+
export type { JSONValue, RequireAtLeastOne, ExportApiResponse, ImportApiResponse } from './utility'

0 commit comments

Comments
 (0)