Skip to content

Commit 3d1907d

Browse files
committed
fix: Exclude identityMode from DefaultNodeSetupOptions spread in index.js
TypeScript strict excess property check rejects identityMode in the spread into DefaultNodeSetupOptions. Destructure it out before spreading, since it's already handled separately via the instantiateOptions pass-through.
1 parent 89deed0 commit 3d1907d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Plugins/PackageToJS/Templates/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ import { defaultBrowserSetup /* #if USE_SHARED_MEMORY */, createDefaultWorkerFac
99
/* #if TARGET_DEFAULT_PLATFORM_NODE */
1010
/** @type {import('./index.d').init} */
1111
async function initNode(_options) {
12+
const { identityMode: _identityMode, ...rest } = _options || {};
1213
/** @type {import('./platforms/node.d.ts').DefaultNodeSetupOptions} */
1314
const options = {
14-
...(_options || {}),
15+
...rest,
1516
/* #if USE_SHARED_MEMORY */
1617
spawnWorker: createDefaultWorkerFactoryForNode(),
1718
/* #endif */

0 commit comments

Comments
 (0)