import { TodoItem } from "./types" ; export const itemCreator = ( partial ) => { return { label : "default" , completed : false , ... partial , } ; } ; export const sleep = ( milliseconds ) => new Promise ( ( resolve ) => setTimeout ( resolve , milliseconds ) ) ;