Re: [w3c/IndexedDB] Shouldn't keyPath properties be (DOMString or FrozenArray<DOMString>)? (#235)

Just to throw out a possibility: to help with TypeScript generation - we could define the attribute in the spec as the union, and accept that implementations would be incorrect and fail tests for the foreseeable future. 

I expect there would be opposition to that, but I'll note for the record that I feel the pain for type checkers and I'd like us to do something better here, if we can. Another idea would be some annotation in the spec IDL for what the type would be if we could  narrow it, but I expect that spec and tooling baggage for rare cases also wouldn't fly.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/235#issuecomment-999832691
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/IndexedDB/issues/235/999832691@github.com>

Received on Wednesday, 22 December 2021 20:06:37 UTC