Matt McCutchen
Matt McCutchen
That would make sense, but it doesn't seem to be what the code does. It sets `opt = opt.tx` [here](https://github.com/JackAdams/meteor-transactions/blob/e22f8b62a1a763518c109778e338d368560a09af/lib/transactions-common.js#L730) and doesn't save the original `opt` anywhere. If you don't...
> But what about the use case (which I actually use quite a lot*), where there is an instant update on the client, then a query on minimongo that could...
Currently, `Transact.prototype.update` (for example) does one or two writes to the `Transactions` collection in `_recordTransaction` plus the write to the original collection, and each write becomes a separate call to...
These errors occur when you have subdirectories of a `typeRoots` directory (in this case `node_modules/@types`) that do not contain `index.d.ts` files. I agree the error message is mysterious and should...
Proposed new errors: - When `types` is _not_ specified (this seems to be the case that mystifies the most users): `Subdirectory '{0}' of 'typeRoots' directory '{1}' is not a valid...
TypeScript looks in `node_modules/@types` by default since this is where types packages from DefinitelyTyped containing global declarations (such as [`@types/node`](https://www.npmjs.com/package/@types/node), to give one popular example) are normally installed. See [the...
The entry `"@types/": "reach/router"` caused https://github.com/reach/router to be downloaded directly into the `node_modules/@types` folder, creating new files and subdirectories unrecognized by the TypeScript compiler alongside the existing valid subdirectories. I'm...
Two semi-legitimate examples from #25883: - Existential types - The "generic index" workaround for mapped types that always substitute on indexing
The use case sounds like a duplicate of #24085, though it seems you've thought through more of the consequences. Let's close this in favor of #24085.
> That is what a union constraint does. No because if `T = A | B | C` then none of `T extends A`, `T extends B`, `T extends C`...