bbrk24
bbrk24
> Although, it should be noted in the that `Truthy` has some restrictions when used as a type-guard: [sindresorhus/is#146](https://github.com/sindresorhus/is/issues/146) It seems `Exclude` doesn't have the same problems `Extract` does. It...
@fregante `Record` doesn't solve the original problem: ```ts type EmptyObject = Record; const foo: EmptyObject = {a: 1}; // should error, but is allowed ``` In fact, the tooltip suggests...
`Record` seems to work: ```ts import type { InvariantOf } from 'type-fest'; type EmptyObject = Record; // test cases const foo: EmptyObject = {a: 1}; // errors const bar: EmptyObject...
Coming back to this a while later, `{ [tag]?: never }` (using the `const tag: unique symbol` from `Opaque`) seems even better than that. Compare: ```ts import type { InvariantOf...
I don't want to right now, if only because I'm not sure how much to put in the doc comment.
I investigated this a little, and from what I can tell, the `GraphIdentifier` and `Weak` objects are being held onto by `GraphStorage`. Perhaps instead of `[GraphIdentifier: Weak]`, it needs some...
Hm, the preview still has the error. I'm not quite sure what's going on.
What's weird is it works locally on my machine. I'm completely new to Rust, so I have no idea how to diagnose the discrepancy.
Yeah I won’t be able to figure out the difference. I’m hopeful it’s just something wrong with the preview.
> You need to run `make wasm` to make sure the live demo that's generated contains your new code change Huh. I figured such a step would be done automatically...