فهرست منبع

Commonized types

Taichi Masuyama 4 سال پیش
والد
کامیت
e1e1b6c30d
2فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 7 0
      packages/app/src/interfaces/common.ts
  2. 1 1
      packages/app/src/interfaces/page.ts

+ 7 - 0
packages/app/src/interfaces/common.ts

@@ -0,0 +1,7 @@
+/*
+ * Common types and interfaces
+ */
+
+
+// Foreign key field
+export type Ref<T> = string | T;

+ 1 - 1
packages/app/src/interfaces/page.ts

@@ -1,8 +1,8 @@
+import { Ref } from './common';
 import { IUser } from './user';
 import { IRevision } from './revision';
 import { ITag } from './tag';
 
-type Ref<T> = string | T;
 
 export type IPage = {
   path: string,