Просмотр исходного кода

improve import lines for types

Yuki Takei 3 лет назад
Родитель
Сommit
f7a17169e9

+ 3 - 3
packages/core/src/interfaces/attachment.ts

@@ -1,6 +1,6 @@
-import { Ref } from './common';
-import { IPage } from './page';
-import { IUser } from './user';
+import type { Ref } from './common';
+import type { IPage } from './page';
+import type { IUser } from './user';
 
 export type IAttachment = {
   page?: Ref<IPage>,

+ 1 - 1
packages/core/src/interfaces/common.ts

@@ -2,7 +2,7 @@
  * Common types and interfaces
  */
 
-import { HasObjectId } from './has-object-id';
+import type { HasObjectId } from './has-object-id';
 
 
 // Foreign key field

+ 1 - 1
packages/core/src/interfaces/growi-facade.ts

@@ -1,4 +1,4 @@
-import { ITemplate } from './template';
+import type { ITemplate } from './template';
 
 export type GrowiFacade = {
   markdownRenderer?: {

+ 6 - 6
packages/core/src/interfaces/page.ts

@@ -1,9 +1,9 @@
-import { Ref } from './common';
-import { HasObjectId } from './has-object-id';
-import { IRevision, HasRevisionShortbody, IRevisionHasId } from './revision';
-import { SubscriptionStatusType } from './subscription';
-import { ITag } from './tag';
-import { IUser, IUserGroupHasId, IUserHasId } from './user';
+import type { Ref } from './common';
+import type { HasObjectId } from './has-object-id';
+import type { IRevision, HasRevisionShortbody, IRevisionHasId } from './revision';
+import type { SubscriptionStatusType } from './subscription';
+import type { ITag } from './tag';
+import type { IUser, IUserGroupHasId, IUserHasId } from './user';
 
 
 export type IPage = {

+ 2 - 2
packages/core/src/interfaces/revision.ts

@@ -1,5 +1,5 @@
-import { HasObjectId } from './has-object-id';
-import { IUser } from './user';
+import type { HasObjectId } from './has-object-id';
+import type { IUser } from './user';
 
 export type IRevision = {
   body: string,

+ 3 - 3
packages/core/src/interfaces/subscription.ts

@@ -1,6 +1,6 @@
-import { Ref } from './common';
-import { IPage } from './page';
-import { IUser } from './user';
+import type { Ref } from './common';
+import type { IPage } from './page';
+import type { IUser } from './user';
 
 export const SubscriptionStatusType = {
   SUBSCRIBE: 'SUBSCRIBE',

+ 4 - 4
packages/core/src/interfaces/user.ts

@@ -1,7 +1,7 @@
-import { IAttachment } from './attachment';
-import { Ref } from './common';
-import { HasObjectId } from './has-object-id';
-import { Lang } from './lang';
+import type { IAttachment } from './attachment';
+import type { Ref } from './common';
+import type { HasObjectId } from './has-object-id';
+import type { Lang } from './lang';
 
 export type IUser = {
   name: string,