Oliver Joseph Ash
Oliver Joseph Ash
``` js var di = require('di'); function Bar() {} di.annotate(Foo, new di.Inject(Bar)); function Foo() {} di.annotate(BarMock, new di.Provide(Bar)); function BarMock() { console.log('initialise BarMock'); } var injector = new di.Injector([BarMock]); injector.get(Foo);...
I've looked hard at some examples, but I'm struggling to understand what a `TransientScope` is. Could we do with some documentation to cover this?
I decided against using the ES6++ syntax (`@Inject` annotations and type annotations) because of the poor linting support. For anyone who follows in my footsteps, here's the latest on the...
### 🐛 Bug Report - `eslint-plugin-expect-type` version: 0.2.2 - ESLint version: 8.36.0 - Node version: 16.3.0 #### Actual Behavior Full reduced test case here: https://github.com/OliverJAsh/eslint-plugin-expect-type-issue Contents inlined below. `package.json`: ```json...
[systemjs-hot-reloader](https://github.com/capaj/systemjs-hot-reloader) provides a `__reload` hook for each module, which can be used like so: ``` js var state = []; export function addItem(text) { state.push(text); } export function removeItem(text) {...
It would be nice to provide a brief summary of how grunt-notify uses the two hooks it is provided with: fail and jshint. How are developers to know how to...
Sometimes I get sax errors. How can I catch them? I have kept `resume_saxerror` to its default value of `true`. ``` Error: Unexpected end Line: 543 Column: 146 Char: at...
## 🐛 Bug report ### Current Behavior The following law as defined [here](https://github.com/gcanti/io-ts/blob/87f6b860001eb4b487429b0547cfa9a4efca33b4/Codec.md): `pipe(codec.decode(u), E.fold(() => u, codec.encode)) = u` for all `u` in `unknown` ```ts import * as assert...
## 🐛 Bug report ### Current Behavior ```ts import * as tt from "io-ts-types"; import * as t from "io-ts"; import { pipe } from "fp-ts/function"; const Premium = t.type({...
## 🐛 Bug report ### Current Behavior Types like `NumberFromString` currently allow decoding from any type (`unknown`). This can be useful but also error prone. For example, we might accidentally...