@@ -2,6 +2,8 @@
* Common types and interfaces
*/
+import { HasObjectId } from './has-object-id';
+
// Foreign key field
-export type Ref<T> = string | T;
+export type Ref<T> = string | T & HasObjectId;
@@ -9,7 +9,7 @@ import { SubscriptionStatusType } from './subscription';
export interface IPage {
path: string,
status: string,
- revision: Ref<IRevision & HasObjectId>,
+ revision: Ref<IRevision>,
tags: Ref<ITag>[],
creator: Ref<IUser>,
createdAt: Date,