import uuid from 'uuid/v4' ; import { INote } from './types' ; export const createNote = ( notebookId , props = { } ) : INote => ( { id : uuid ( ) , notebookId , name : 'New note' , type : 'presto' , content : '\n' , owner : '' , dateCreated : Date . now ( ) , dateUpdated : Date . now ( ) , ... props as any } ) ;