Alexander G.
Alexander G.
## Why? Better escape hatch than `.value` ## Usage ```typescript function getUser(id: string): Either; const value = getUser(11).unwrap().name; ``` ## What else - Fixed compiler and linter errors
Пишу этот issue в 3 часа ночи, поэтому pr не сделал. Я предлагаю 2 простых изменения в коде, которые позволят сделать загружаемые на сервера яндекса архивы с функциями более чистыми...
Привет, смотрел твой разбор ботов на ютубе, и у них у всех была одна большая проблема: весь код - портянка на 5к строк. Поэтому у меня созрел вопрос: как ты...
Как известно, с этими методами много проблем, из-за их двоякого ответа, но я недавно нашёл решение, которое позволит всё типизировать корректно. ```TS const method = ts.createMethodSignature( [ts.createTypeParameterDeclaration("Params", paramsType, undefined)], [params],...
**Is your feature request related to a problem? Please describe.** For my bot i decided to create custom context so it can be convinient to send messages and interact with...
In js you can override object properties with symbols. TS can add very good type safety for `this` as well. Example for `Maybe` ```typescript class Maybe { // If current...
- Added identity monad - Added tests for identity monad Caveats - Implementation allows multiple parameters (yes, it's not functional style, but convinient. Example - #45) TODO - Docs
All current monads in package are representing some extra state (Left/Right, Just/None), but using monads just for chaining is good on itself Example: ```javascript // Before app.use( express.static( path.resolve(getDirname(import.meta.url), "../public")...
Example ```js const a = new Proxy({ i: 1 }, { get: (target) => () => target.i++, }) console.log(a == 1, a == 2, a == 3); ``` Explaination 1....
Hello, while @JSMonk was away this spring i created my fork of this library. Here it is https://github.com/AlexXanderGrib/monads-io And here some good ideas you can grab from it: ### 1....