choojs / choo

:steam_locomotive::train: - sturdy 4kb frontend framework
https://choo.io/
MIT License
6.78k stars 595 forks source link

typings: add IChoo.hash #691

Closed seangenabe closed 4 years ago

toddself commented 5 years ago

We should add a cache option too.

Would you mind adding it?

Looks like the definition would be:

cache: number | {max:number, maxAge:number}

toddself commented 5 years ago

Also thanks for the PR @seangenabe

seangenabe commented 5 years ago

Hmmm... I intentionally left out cache because it was dependent on another module, so I wasn't entirely sure how to deal with it.