Michael Schmidt

Results 112 issues of Michael Schmidt

fixes #2313 This adds support for enums with negative discriminants and slightly improves error messages. Honestly, implementing this was pretty simple. I don't have too much to say about this,...

All functions with `Option` arguments take both `undefined` and `null` and generally treat them as equivalent ([see `isLikeNone`](https://github.com/rustwasm/wasm-bindgen/blob/3a8da7cb8842d4cb9918871179b6b7d3c77df5a0/crates/cli-support/src/js/mod.rs#L2181)). Despite both `undefined` and `null` being accepted, the generated type definitions only...

waiting for author

### Motivation Right now, incoming slices and vectors are typed as `T[]` or `UInt8Array` and similar for primitives. This is unnecessarily restrictive. Even today, all function taking slices and vectors...

enhancement

Enums are now formatted with each variant on its own line. This makes enum definitions easier to read. It also allowed me to remove the hard-coded enum detection in `reset_indentation`,...

While working on #4201, I had the idea to test how wasm bindgen handles getter-setter pairs with different types. Not well was the answer. This PR completely changes how the...

needs review

fixes #4113 This adds support for regular JS numbers (think `typeof x === 'number'`) as values for `u64` and `i64` parameters. This should makes Rust APIs taking large numbers more...

I added type annotations to a few commonly-used JS glue code functions. This makes it a lot easier to understand the glue, because I have TS to help me out....

needs review

### Motivation Certain JS protocols require symbols to identify a certain method or field. E.g. for #4142, we need to use [`Symbol.iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/iterator) to define an iterable object. ### Proposed Solution...

enhancement

### Motivation Right now, returning Rust iterators is a pain. While collecting everything into a vec (so the JS side can get an `Array`) can work for some scenarios, this...

enhancement

Currently, syntax errors in doc strings are reported like this: ``` Generating objects inventory at docs/objects.inv these 2 objects' docstrings contain syntax errors: spandrel.architectures.GRL.__arch.grl.GRL spandrel.architectures.GRL.__arch.grl.TransformerStage ``` This is not enough...

enhancement
question