import { CollectionDefinition } from "@worldbrain/storex/lib/types" ; export const TEST_COLLECTION_DEFINITIONS = { simpleUser : ( options ) : CollectionDefinition => ( { version : new Date ( ) , fields : { ... ( options . fields . has ( 'email' ) ? { email : { type : 'string' } } : { } ) , ... ( options . fields . has ( 'displayName' ) ? { displayName : { type : 'string' } } : { } ) , } } ) } ;