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 13, 2024
1 parent 8da51a8 commit 07450f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/pass-style/src/deeplyFulfilled.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { passStyleOf } from './passStyleOf.js';
import { makeTagged } from './makeTagged.js';

/**
* @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 @@ -106,7 +106,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 07450f0

Please sign in to comment.