Skip to content

Commit

Permalink
fixup! typinging shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jul 3, 2024
1 parent 61129e6 commit 435352d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/marshal/src/deeplyFulfilled.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isPromise } from '@endo/promise-kit';
import { getTag, isObject, makeTagged, passStyleOf } from '@endo/pass-style';

/**
* @import {Passable, Primitive, CopyRecord, CopyArray, CopyTagged, RemotableObject} from '@endo/pass-style'
* @import {Passable, ByteArray, CopyRecord, CopyArray, CopyTagged, RemotableObject} from '@endo/pass-style'
*/

const { ownKeys } = Reflect;
Expand Down Expand Up @@ -104,7 +104,11 @@ export const deeplyFulfilled = async val => {
return E.when(Promise.all(valPs), vals => harden(vals));
}
case 'byteArray': {
return val;
const bytes = /** @type {ByteArray} */ (val);
// @ts-expect-error Why
// "Type 'ArrayBuffer' is not assignable to type 'DeeplyAwaited<T>'."?
// TODO fix.
return bytes;
}
case 'tagged': {
const tgd = /** @type {CopyTagged} */ (val);
Expand Down

0 comments on commit 435352d

Please sign in to comment.