Skip to content

Commit

Permalink
chore: remove namespace and export types from module instead
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin committed Sep 21, 2020
1 parent 879afbd commit d1dc5da
Show file tree
Hide file tree
Showing 29 changed files with 6,642 additions and 6,661 deletions.
7 changes: 3 additions & 4 deletions packages/facebook-batch/src/index.ts
@@ -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
@@ -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
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
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
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

0 comments on commit d1dc5da

Please sign in to comment.