-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Types #22
Types #22
Conversation
Cool, thanks bro 😄 , I think the CacheAll.Cacher should be an I also think we should have three Currently, i separate entry points to create independent singleton cache instance, i will research to find more ways to archive it. |
Ok. I'll try create separate files 😄 Doesn't import from index.js file create singleton? |
No, it does. module.exports = require('./src/cache')('file') If we use index.js file, we must do something like below: // Maybe user just want to use one, but three instance was created
module.exports.file = require('./src/cache')('file')
module.exports.memory = require('./src/cache')('memory')
module.exports.redis = require('./src/cache')('redis') Ofcourse, the effect is too small 😄 |
Hello! I've reworked types. Now it works with 4 d.ts files, but they are identical 😄 Check please. Have you some suggestions? |
Hi bro, i think it fine, i just split |
@bahung1221 I think, i found right way for types 😄 Check please. Same functions for all modules |
Cool! i have some problems when try to test it using relative path, lol. so i will release an beta version of it and then try to make it run in example project, it will be Thank bro 😄 |
Hello! I've added types, but it broke backward compatibility for imports. Review please this version. I thinking about saving current imports with entry point, but now I have problems with it 😄