From 3ba8c718e25f5a7f84b1e936dcf404134ce7f1fc Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Sun, 28 Apr 2024 13:02:43 -0700 Subject: [PATCH] fixup! review suggestions --- packages/base-zone/src/index.js | 1 + packages/base-zone/src/is-passable.js | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 packages/base-zone/src/is-passable.js diff --git a/packages/base-zone/src/index.js b/packages/base-zone/src/index.js index 3c3f036ff1f..5815984e058 100644 --- a/packages/base-zone/src/index.js +++ b/packages/base-zone/src/index.js @@ -6,3 +6,4 @@ export * from './exports.js'; // Utilities for creating zones. export * from './make-once.js'; export * from './keys.js'; +export * from './is-passable.js'; diff --git a/packages/base-zone/src/is-passable.js b/packages/base-zone/src/is-passable.js new file mode 100644 index 00000000000..6a3fe59fbbe --- /dev/null +++ b/packages/base-zone/src/is-passable.js @@ -0,0 +1,8 @@ +import { isPassable as realIsPassable } from '@endo/pass-style'; + +/** + * @deprecated Import `isPassable` directly from `@endo/pass-style` + * @param {any} specimen + * @returns {specimen is Passable} + */ +export const isPassable = specimen => realIsPassable(specimen);