Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove namespace and export types from module instead #627

Merged
merged 1 commit into from
Sep 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions packages/facebook-batch/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import BatchRequestError from './BatchRequestError';
import FacebookBatchQueue from './FacebookBatchQueue';
import { getErrorMessage, isError613 } from './utils';
export { default as BatchRequestError } from './BatchRequestError';
export { default as FacebookBatchQueue } from './FacebookBatchQueue';
export { getErrorMessage, isError613 } from './utils';

export { getErrorMessage, isError613, FacebookBatchQueue, BatchRequestError };
export * from './types';
2 changes: 1 addition & 1 deletion packages/messaging-api-line/src/Line.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { LineTypes } from './LineTypes';
import * as LineTypes from './LineTypes';

function createText(
text: string,
Expand Down
2 changes: 1 addition & 1 deletion packages/messaging-api-line/src/LineClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from 'messaging-api-common';

import Line from './Line';
import type { LineTypes } from './LineTypes';
import * as LineTypes from './LineTypes';

function handleError(
err: BaseAxiosError<{
Expand Down
2 changes: 1 addition & 1 deletion packages/messaging-api-line/src/LineNotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import axios, {
import warning from 'warning';
import { JsonObject } from 'type-fest';

import type { LineTypes } from './LineTypes';
import * as LineTypes from './LineTypes';

function handleError(
err: BaseAxiosError<{
Expand Down
2 changes: 1 addition & 1 deletion packages/messaging-api-line/src/LinePay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import axios, {
import invariant from 'ts-invariant';
import warning from 'warning';

import type { LineTypes } from './LineTypes';
import * as LineTypes from './LineTypes';

function handleError(
err: BaseAxiosError<{
Expand Down
Loading