From 33a9211d805a0e3e7f8dc5c04115590321459192 Mon Sep 17 00:00:00 2001 From: eric-burel Date: Tue, 6 Apr 2021 14:18:55 +0200 Subject: [PATCH] add createdAt and updatedAt to the VulcanDocument type --- packages/schema/typings.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/schema/typings.ts b/packages/schema/typings.ts index 21627e6d..38a8528d 100644 --- a/packages/schema/typings.ts +++ b/packages/schema/typings.ts @@ -132,6 +132,8 @@ export interface VulcanDocument { // Special fields _id?: string; userId?: string; + createdAt?: Date | string | null; // TODO: is it a date or a string in the context where we rely on VulcanDocument? + updatedAt?: Date | string | null; slug?: string; [key: string]: any; }