Skip to content

Commit

Permalink
chore: add patch of endo packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Feb 2, 2022
1 parent bf5c450 commit 9c9485b
Show file tree
Hide file tree
Showing 2 changed files with 1,504 additions and 8 deletions.
27 changes: 27 additions & 0 deletions patches/@endo+captp+1.10.12.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff --git a/node_modules/@endo/captp/src/captp.js b/node_modules/@endo/captp/src/captp.js
index 81be418..fe88c32 100644
--- a/node_modules/@endo/captp/src/captp.js
+++ b/node_modules/@endo/captp/src/captp.js
@@ -1,6 +1,9 @@
// @ts-check
/// <reference types="ses"/>

+/** @template Slot @typedef {import('@endo/marshal/exported.js').ConvertValToSlot<Slot>} ConvertValToSlot */
+/** @template Slot @typedef {import('@endo/marshal/exported.js').ConvertSlotToVal<Slot>} ConvertSlotToVal */
+
// Your app may need to `import '@endo/eventual-send/shim.js'` to get HandledPromise

// This logic was mostly lifted from @agoric/swingset-vat liveSlots.js
diff --git a/node_modules/@endo/captp/src/types.js b/node_modules/@endo/captp/src/types.js
index e07cbe6..99502f9 100644
--- a/node_modules/@endo/captp/src/types.js
+++ b/node_modules/@endo/captp/src/types.js
@@ -17,7 +17,7 @@
*/

/**
- * @typedef {[boolean, CapData<CapTPSlot>]} TrapCompletion The head of the pair
+ * @typedef {[boolean, import('@endo/marshal/exported.js').CapData<CapTPSlot>]} TrapCompletion The head of the pair
* is the `isRejected` value indicating whether the sync call was an exception,
* and tail of the pair is the serialized fulfillment value or rejection reason.
* (The fulfillment value is a non-thenable. The rejection reason is normally
Loading

0 comments on commit 9c9485b

Please sign in to comment.