TS error when using r with Uint8Array

This issue has been tracked since 2022-11-19.

Perhaps there is an incomplete definition on ReactiveProxy... ?

import { r } from "@arrow-js/core";

type Data = {
	payload: Uint8Array;

const data = r<Data>({
	payload: new Uint8Array(),

data.payload = new Uint8Array();
// ^^^^^^^^^ Type 'Uint8Array' is not assignable to type 'ReactiveProxy<Uint8Array>'.
RafalKornel wrote this answer on 2022-11-19

Can this issue be related?

neezer wrote this answer on 2022-11-19

@RafalKornel Yeah, possibly.

Considering that issue says the code works, I'm guessing the type definition for ReactiveProxy is incomplete, but I haven't looked at the source yet.

justin-schroeder wrote this answer on 2022-11-19

Yes — the typing on r needs more work. I actually think r would be on the short list for a rewrite.

More Details About Repo
Owner Name justin-schroeder
Repo Name arrow-js
Full Name justin-schroeder/arrow-js
Language TypeScript
Created Date 2022-11-08
Updated Date 2023-03-28
Star Count 1240
Watcher Count 21
Fork Count 22
Issue Count 7


Issue Title Created Date Updated Date