-
An discussion on Ziggit about [safety tagging and bare unions](https://ziggit.dev/t/can-i-disable-the-safety-checking-tag-on-a-bare-union-without-packed/4605) prompted me to open this issue, as a soun…
-
The next version bump for TypeScript in `core` and `metamask-module-template` will mark an update to version 4.9, which will make the `satisfies` operator keyword available for use (https://devblogs.m…
-
Currently, the `bugprone-unchecked-optional-access` check only applies to optional-like types. However, why don't we extend this check to all types? This would allow user-defined types to be verified …
-
# Info
Currently there is no type safety with Angular. We ask people to implement `CUSTOM_ELEMENTS_SCHEMA` when they import our packages. By doing this, it disables type safety for their application,…
-
Take this `OR` statement:
```typescript
const result = this.OR([
{ALT: () => 1},
{ALT: () => 'string'}
])
```
The type of result is `any`, where I'd expect it to be of type `string | numb…
-
When referencing a singleton via `foo.provided.bar`, we lose type safety because `provided` always resolves to the `ProvidedInstance` rather than the specific type of the dependency.
```
set…
-
(Copied from GH)
The way we model Gateway packets right now isn't *wrong*:
```
export interface GatewayMessage {
op: OPCode
d?: any
s?: number
t?: GatewayMessageType
}
```
…but, we could ta…
slice updated
6 months ago
-
Is there a way to make url generation for path parameters such as `/blog/:postId` accept only numbers (provided that `postId` should be a number) via typescript? Writing this kind of logic manually is…
-
You can modify the inner value using `DerefMut`, even to something the predicate wouldn't allow.
Example:
```
let two: Refinement = Refinement::new(2);
*two.deref_mut() = 11;
println!("{two}");…
-
As the engine currently stands, `StringTableEntry` is a simple typedef on `const char *`. We might consider making it a POD struct with an implicit conversion TO `const char *`, but no explicit conver…