The codeRemovedEngineOptionError carries — the discriminant its
own docstring tells callers to branch on.
causl/causl-wasm-ts#363 — exported for the same reason
import('./wasm-registry.js').CauslEngineErrorCode was (finding 8):
tsconfig.base.json sets useUnknownInCatchVariables: true, so without a
nameable literal an adopter's switch on err.code is
(err as { code?: string }).code, an unchecked cast against an unexported
string. This error is thrown by three @causl/causl-wasm-ts/wasm factories
as well as by createCausl(), so it is reachable from a subpath-only
adopter who never imports the main barrel.
The
codeRemovedEngineOptionError carries — the discriminant its own docstring tells callers to branch on.causl/causl-wasm-ts#363 — exported for the same reason import('./wasm-registry.js').CauslEngineErrorCode was (finding 8):
tsconfig.base.jsonsetsuseUnknownInCatchVariables: true, so without a nameable literal an adopter'sswitchonerr.codeis(err as { code?: string }).code, an unchecked cast against an unexported string. This error is thrown by three@causl/causl-wasm-ts/wasmfactories as well as bycreateCausl(), so it is reachable from a subpath-only adopter who never imports the main barrel.