Browse Source
Use 'import type' to import types, eliminate webpack warnings (#358)
pull/359/head
Matthias Frey
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with
21 additions and
21 deletions
-
apps/api/src/app/access/access.controller.ts
-
apps/api/src/app/account/account.controller.ts
-
apps/api/src/app/admin/admin.controller.ts
-
apps/api/src/app/auth-device/auth-device.controller.ts
-
apps/api/src/app/auth/web-auth.service.ts
-
apps/api/src/app/cache/cache.controller.ts
-
apps/api/src/app/experimental/experimental.controller.ts
-
apps/api/src/app/export/export.controller.ts
-
apps/api/src/app/import/import.controller.ts
-
apps/api/src/app/order/order.controller.ts
-
apps/api/src/app/portfolio/portfolio.controller.ts
-
apps/api/src/app/portfolio/portfolio.service.ts
-
apps/api/src/app/subscription/subscription.controller.ts
-
apps/api/src/app/symbol/symbol.controller.ts
-
apps/api/src/app/user/user.controller.ts
-
libs/common/src/lib/types/index.ts
|
|
@ -1,5 +1,5 @@ |
|
|
|
import { Access } from '@ghostfolio/common/interfaces'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { Controller, Get, Inject, UseGuards } from '@nestjs/common'; |
|
|
|
import { REQUEST } from '@nestjs/core'; |
|
|
|
import { AuthGuard } from '@nestjs/passport'; |
|
|
|
|
|
@ -6,7 +6,7 @@ import { |
|
|
|
hasPermission, |
|
|
|
permissions |
|
|
|
} from '@ghostfolio/common/permissions'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Body, |
|
|
|
Controller, |
|
|
|
|
|
@ -5,7 +5,7 @@ import { |
|
|
|
hasPermission, |
|
|
|
permissions |
|
|
|
} from '@ghostfolio/common/permissions'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Controller, |
|
|
|
Get, |
|
|
|
|
|
@ -4,7 +4,7 @@ import { |
|
|
|
hasPermission, |
|
|
|
permissions |
|
|
|
} from '@ghostfolio/common/permissions'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Controller, |
|
|
|
Delete, |
|
|
|
|
|
@ -2,7 +2,7 @@ import { AuthDeviceDto } from '@ghostfolio/api/app/auth-device/auth-device.dto'; |
|
|
|
import { AuthDeviceService } from '@ghostfolio/api/app/auth-device/auth-device.service'; |
|
|
|
import { UserService } from '@ghostfolio/api/app/user/user.service'; |
|
|
|
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Inject, |
|
|
|
Injectable, |
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
import { CacheService } from '@ghostfolio/api/app/cache/cache.service'; |
|
|
|
import { RedisCacheService } from '@ghostfolio/api/app/redis-cache/redis-cache.service'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { Controller, Inject, Post, UseGuards } from '@nestjs/common'; |
|
|
|
import { REQUEST } from '@nestjs/core'; |
|
|
|
import { AuthGuard } from '@nestjs/passport'; |
|
|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
import { baseCurrency, benchmarks } from '@ghostfolio/common/config'; |
|
|
|
import { DATE_FORMAT } from '@ghostfolio/common/helper'; |
|
|
|
import { isApiTokenAuthorized } from '@ghostfolio/common/permissions'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Body, |
|
|
|
Controller, |
|
|
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
import { Export } from '@ghostfolio/common/interfaces'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { Controller, Get, Inject, UseGuards } from '@nestjs/common'; |
|
|
|
import { REQUEST } from '@nestjs/core'; |
|
|
|
import { AuthGuard } from '@nestjs/passport'; |
|
|
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Body, |
|
|
|
Controller, |
|
|
|
|
|
@ -6,7 +6,7 @@ import { |
|
|
|
hasPermission, |
|
|
|
permissions |
|
|
|
} from '@ghostfolio/common/permissions'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Body, |
|
|
|
Controller, |
|
|
|
|
|
@ -11,7 +11,7 @@ import { |
|
|
|
PortfolioSummary |
|
|
|
} from '@ghostfolio/common/interfaces'; |
|
|
|
import { InvestmentItem } from '@ghostfolio/common/interfaces/investment-item.interface'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Controller, |
|
|
|
Get, |
|
|
|
|
|
@ -32,7 +32,7 @@ import { |
|
|
|
TimelinePosition |
|
|
|
} from '@ghostfolio/common/interfaces'; |
|
|
|
import { InvestmentItem } from '@ghostfolio/common/interfaces/investment-item.interface'; |
|
|
|
import { |
|
|
|
import type { |
|
|
|
DateRange, |
|
|
|
OrderWithAccount, |
|
|
|
RequestWithUser |
|
|
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Body, |
|
|
|
Controller, |
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Controller, |
|
|
|
Get, |
|
|
|
|
|
@ -4,7 +4,7 @@ import { |
|
|
|
hasPermission, |
|
|
|
permissions |
|
|
|
} from '@ghostfolio/common/permissions'; |
|
|
|
import { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
|
import { |
|
|
|
Body, |
|
|
|
Controller, |
|
|
|
|
|
@ -1,10 +1,10 @@ |
|
|
|
import { AccessWithGranteeUser } from './access-with-grantee-user.type'; |
|
|
|
import { DateRange } from './date-range.type'; |
|
|
|
import { Granularity } from './granularity.type'; |
|
|
|
import { OrderWithAccount } from './order-with-account.type'; |
|
|
|
import { RequestWithUser } from './request-with-user.type'; |
|
|
|
import type { AccessWithGranteeUser } from './access-with-grantee-user.type'; |
|
|
|
import type { DateRange } from './date-range.type'; |
|
|
|
import type { Granularity } from './granularity.type'; |
|
|
|
import type { OrderWithAccount } from './order-with-account.type'; |
|
|
|
import type { RequestWithUser } from './request-with-user.type'; |
|
|
|
|
|
|
|
export { |
|
|
|
export type { |
|
|
|
AccessWithGranteeUser, |
|
|
|
DateRange, |
|
|
|
Granularity, |
|
|
|