Skip to content
Merged
2 changes: 1 addition & 1 deletion fjs/asn.1/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
decodeObjectIdentifier,
type ObjectIdentifier,
} from "./module.f.ts"
import { assert, assertEq } from '../asserts/module.f.ts'
import { assert, assertEq } from '../asserts/module.f.mjs'

const { concat, popFront: pop, listToVec } = msb
const pop8 = pop(8n)
Expand Down
19 changes: 14 additions & 5 deletions fjs/asserts/module.f.ts → fjs/asserts/module.f.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,29 @@

/**
* Marks a code path as unimplemented. Always throws.
* @type {() => never}
*/
export const todo = (): never => { throw 'not implemented' }
export const todo = () => { throw 'not implemented' }
Comment thread
sergey-shandar marked this conversation as resolved.

/**
* Throws `msg` (default `'assertion failed'`) if `v` is `false`.
*
* Narrows `v` to `true` via `asserts v`, so callers can rely on the
* condition holding for the rest of the enclosing scope.
*
* @type {(v: boolean, msg?: unknown) => asserts v}
*/
export const assert: (v: boolean, msg?: unknown) => asserts v = (v, msg = 'assertion failed') => {
export const assert = (v, msg = 'assertion failed') => {
if (!v) throw msg
}

/**
* Asserts that `a` and `b` are `===`, throwing `x` (the `[a, b]` pair, plus
* an optional third element used as an extra message) if they differ.
*
* @type {<T>(...x: readonly[T, T, unknown?]) => void}
*/
export const assertEq = <T>(...x: readonly[T, T, unknown?]): void => {
export const assertEq = (...x) => {
const [a, b] = x
assert(a === b, x)
}
Expand All @@ -32,8 +37,10 @@ export const assertEq = <T>(...x: readonly[T, T, unknown?]): void => {
* Compile-time-only check: a type resolves only if it is exactly `true`.
* Used to assert type-level properties without any runtime cost, e.g.
* `type _ = Assert<Equal<A, B>>`.
*
* @template {true} T
* @typedef {T} Assert
*/
export type Assert<T extends true> = T

/**
* Asserts that `a` is neither `null` nor `undefined` and returns it,
Expand All @@ -42,8 +49,10 @@ export type Assert<T extends true> = T
* Use this to chain directly off a call that may return a nullish value,
* e.g. `const r = assertNotNullish(f(x))`. For a variable that already
* exists, prefer `assert(a !== null && a !== undefined)` instead.
*
* @type {<T>(a: T|null|undefined, msg?: unknown) => T}
*/
export const assertNotNullish = <T>(a: T|null|undefined, msg?: unknown): T => {
export const assertNotNullish = (a, msg) => {
assert(a !== null && a !== undefined, msg)
return a
}
2 changes: 1 addition & 1 deletion fjs/asserts/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert, assertEq, todo } from './module.f.ts'
import { assert, assertEq, todo } from './module.f.mjs'

export const proof = {
assertPassesOnTrue: () => {
Expand Down
2 changes: 1 addition & 1 deletion fjs/base_n/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEq } from '../asserts/module.f.ts'
import { assertEq } from '../asserts/module.f.mjs'
import { empty, maxLength, vec, length } from '../types/bit_vec/module.f.ts'
import { baseN } from './module.f.ts'

Expand Down
2 changes: 1 addition & 1 deletion fjs/basen/base64/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'
import { empty, vec, repeat, vec8, maxLength, type Vec } from "../../types/bit_vec/module.f.ts"
import { encode, decode } from "./module.f.ts"

Expand Down
2 changes: 1 addition & 1 deletion fjs/basen/cbase32/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { empty, vec, type Vec } from "../../types/bit_vec/module.f.ts"
import { cBase32ToVec, cBase32ToVec5x, vec5xToCBase32, vecToCBase32 } from "./module.f.ts"
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'

const check5x = (s: string, v: Vec) => {
const sr = vec5xToCBase32(v)
Expand Down
2 changes: 1 addition & 1 deletion fjs/bnf/data/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { sort } from '../../types/object/module.f.ts'
import { oneEncode, option, range, rangeDecode, repeat0Plus, set } from '../module.f.ts'
import { classic, deterministic } from '../testlib.f.ts'
import { emptyTagMap, type RuleSet, toData } from './module.f.ts'
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'

export const proof = {
rangeDecode: () => {
Expand Down
2 changes: 1 addition & 1 deletion fjs/bnf/descent/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { commaJoin0Plus, option, range, repeat0Plus, set } from '../module.f.ts'
import { deterministic } from '../testlib.f.ts'
import { emptyTagMap, toData } from '../data/module.f.ts'
import { descentParser, type DescentMatch, type CodePointMeta, type DescentMatchResult } from './module.f.ts'
import { assertEq, assertNotNullish } from '../../asserts/module.f.ts'
import { assertEq, assertNotNullish } from '../../asserts/module.f.mjs'

const mapCodePoint = (cp: CodePoint): CodePointMeta<unknown> => [cp, undefined]

Expand Down
2 changes: 1 addition & 1 deletion fjs/bnf/ll1/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { commaJoin0Plus, option, range, repeat0Plus, set } from '../module.f.ts'
import { deterministic } from '../testlib.f.ts'
import { type RuleSet, toData } from '../data/module.f.ts'
import { dispatchMap, type MatchResult, parser, parserRuleSet } from './module.f.ts'
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'

export const proof = {
dispatch: [
Expand Down
2 changes: 1 addition & 1 deletion fjs/bnf/module.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { definedValues, type StringMap } from '../types/object/module.f.ts'
import { type Array2, isArray2 } from '../types/array/module.f.ts'
import { map, toArray, repeat as listRepeat } from '../types/list/module.f.ts'
import { contains } from '../types/range/module.f.ts'
import { assert } from '../asserts/module.f.ts'
import { assert } from '../asserts/module.f.mjs'

// Types

Expand Down
2 changes: 1 addition & 1 deletion fjs/bnf/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert, assertEq } from '../asserts/module.f.ts'
import { assert, assertEq } from '../asserts/module.f.mjs'
import { classic, deterministic } from './testlib.f.ts'
import {
rangeEncode,
Expand Down
2 changes: 1 addition & 1 deletion fjs/bnf/token_symbol/module.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @module
*/
import { assert } from '../../asserts/module.f.ts'
import { assert } from '../../asserts/module.f.mjs'
import { fromUndefined, type Nullable } from '../../types/nullable/module.f.ts'
import { eof, rangeDecode, unicodeRange } from '../module.f.ts'

Expand Down
2 changes: 1 addition & 1 deletion fjs/bnf/token_symbol/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'
import { capacity, encoding } from './module.f.ts'

const names = ['>>', '>>>=', 'instanceof'] as const
Expand Down
2 changes: 1 addition & 1 deletion fjs/cas/cli/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { defaultNodeProgramOptions, emptyState, virtual } from '../../effects/no
import { type NodeProgramOptions } from '../../effects/node/module.f.ts'
import { dispatch } from '../../cli/module.f.ts'
import { vecToCBase32 } from '../../basen/cbase32/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'

const makeOptions = (args: readonly string[]): NodeProgramOptions =>
({ ...defaultNodeProgramOptions, args })
Expand Down
2 changes: 1 addition & 1 deletion fjs/cas/evo/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'
import { pure } from '../../effects/module.f.ts'
import { fileCas, type Cas } from '../module.f.ts'
import { sha256 } from '../../crypto/sha2/module.f.ts'
Expand Down
2 changes: 1 addition & 1 deletion fjs/cas/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { error, ok, type Ok } from '../types/result/module.f.ts'
import { emptyState, virtual } from '../effects/node/virtual/module.f.ts'
import { join } from '../path/module.f.ts'
import { nonEmpty, empty, type List } from '../effects/list/module.f.ts'
import { assert, assertEq, assertNotNullish } from '../asserts/module.f.ts'
import { assert, assertEq, assertNotNullish } from '../asserts/module.f.mjs'

const testDir = './test-cas-cli'

Expand Down
2 changes: 1 addition & 1 deletion fjs/ci/deno/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { coverageInclude, denoSteps } from './module.f.ts'
import { toSteps } from '../common/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'

const coverageRuns = (version: string): readonly string[] =>
toSteps(denoSteps(version))
Expand Down
2 changes: 1 addition & 1 deletion fjs/ci/nix/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @module
*/
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'
import { step } from '../../effects/module.f.ts'
import { readUtf8File } from '../../effects/node/module.f.ts'
import { emptyState, virtual } from '../../effects/node/virtual/module.f.ts'
Expand Down
2 changes: 1 addition & 1 deletion fjs/ci/node/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { basicNode } from './module.f.ts'
import { test } from '../common/module.f.ts'
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'

export const proof = {
basicNode: () => {
Expand Down
2 changes: 1 addition & 1 deletion fjs/ci/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { coverageInclude } from './deno/module.f.ts'
import { utf8, utf8ToString } from '../text/module.f.ts'
import { empty as emptyVec, isVec } from '../types/bit_vec/module.f.ts'
import { type MetaStep, type Os, test, ubuntu, type GitHubAction, parseGitHubAction } from './common/module.f.ts'
import { assert, assertEq } from '../asserts/module.f.ts'
import { assert, assertEq } from '../asserts/module.f.mjs'
import type { State } from '../effects/node/virtual/module.f.ts'
import { emptyState, virtual, type Dir } from '../effects/node/virtual/module.f.ts'
import { parse as jsonParse } from '../media/json/module.f.ts'
Expand Down
2 changes: 1 addition & 1 deletion fjs/cli/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { pure } from '../effects/module.f.ts'
import type { NodeOp, NodeProgramOptions } from '../effects/node/module.f.ts'
import { defaultNodeProgramOptions, emptyState, virtual } from '../effects/node/virtual/module.f.ts'
import { dispatch, type Commands } from './module.f.ts'
import { assert, assertEq } from '../asserts/module.f.ts'
import { assert, assertEq } from '../asserts/module.f.mjs'

const makeOptions = (args: readonly string[]): NodeProgramOptions =>
({ ...defaultNodeProgramOptions, args })
Expand Down
2 changes: 1 addition & 1 deletion fjs/common/monoid/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { repeat, fold, type Monoid } from "./module.f.ts";
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'

export const proof = {
numberAdd: () => {
Expand Down
2 changes: 1 addition & 1 deletion fjs/crypto/hmac/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'
import { utf8 } from '../../text/module.f.ts'
import { uint, vec } from '../../types/bit_vec/module.f.ts'
import { sha256, sha384, sha512 } from '../sha2/module.f.ts'
Expand Down
2 changes: 1 addition & 1 deletion fjs/crypto/pow/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { utf8 } from '../../text/module.f.ts'
import { empty, uint } from '../../types/bit_vec/module.f.ts'
import { computeSync, sha224, sha256 } from '../sha2/module.f.ts'
import { bitcoinPow, genesisNBits, genesisTarget, pow, sha256Pow, targetFromNBits } from './module.f.ts'
import { assert, assertEq, assertNotNullish } from '../../asserts/module.f.ts'
import { assert, assertEq, assertNotNullish } from '../../asserts/module.f.mjs'

const p256 = sha256Pow
const p224 = pow(sha224)
Expand Down
2 changes: 1 addition & 1 deletion fjs/crypto/secp/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert, assertEq, assertNotNullish } from '../../asserts/module.f.ts'
import { assert, assertEq, assertNotNullish } from '../../asserts/module.f.mjs'
import { prime_field } from '../../types/prime_field/module.f.ts'
import { curve, secp256k1, secp192r1, secp256r1, eq, type Point, secp384r1, secp521r1, type Curve, type Init } from './module.f.ts'

Expand Down
2 changes: 1 addition & 1 deletion fjs/crypto/sha2/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { utf8 } from '../../text/module.f.ts'
import { repeat, uint, vec } from '../../types/bit_vec/module.f.ts'
import { flip } from '../../types/function/module.f.ts'
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'
import { map } from '../../types/list/module.f.ts'
import {
base32,
Expand Down
2 changes: 1 addition & 1 deletion fjs/crypto/sign/module.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @module
*/
import { assertNotNullish } from '../../asserts/module.f.ts'
import { assertNotNullish } from '../../asserts/module.f.mjs'
import type { Array2 } from '../../types/array/module.f.ts'
import { bitLength, divUp8, roundUp8 } from '../../types/bigint/module.f.ts'
import { empty, length, msb, repeat, unpack, vec, vec8, type Vec } from '../../types/bit_vec/module.f.ts'
Expand Down
2 changes: 1 addition & 1 deletion fjs/crypto/sign/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { hmac } from "../hmac/module.f.ts"
import { secp192r1, secp256r1, secp384r1, secp521r1, type Curve } from "../secp/module.f.ts"
import { computeSync, sha224, sha256, sha384, sha512, type Sha2 } from "../sha2/module.f.ts"
import { all, concat, computeK, fromCurve, sign } from "./module.f.ts"
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'

const sample = utf8("sample")
const test = utf8("test")
Expand Down
2 changes: 1 addition & 1 deletion fjs/crypto/vdf/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { sloth, p } from './module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'

const { eval: evalVdf, verify, modSqrt, quadRes } = sloth

Expand Down
2 changes: 1 addition & 1 deletion fjs/dev/module.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type { StringMap } from '../types/object/module.f.ts'
import { unwrap } from '../types/result/module.f.ts'
import { pure, step, type Effect } from '../effects/module.f.ts'
import { join, relativize, toPosix } from '../path/module.f.ts'
import { assert, assertEq } from '../asserts/module.f.ts'
import { assert, assertEq } from '../asserts/module.f.mjs'
import { emptyState, virtual, type Dir } from '../effects/node/virtual/module.f.ts'

export type Module = {
Expand Down
2 changes: 1 addition & 1 deletion fjs/dev/package_json/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'
import { unwrap } from '../../types/result/module.f.ts'
import {
validatePackageJson,
Expand Down
2 changes: 1 addition & 1 deletion fjs/dev/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert, assertEq, todo } from '../asserts/module.f.ts'
import { assert, assertEq, todo } from '../asserts/module.f.mjs'
import { shouldLoad } from './module.f.ts'

export const proof = {
Expand Down
2 changes: 1 addition & 1 deletion fjs/dev/update/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @module
*/
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'
import { utf8 } from '../../text/module.f.ts'
import { readUtf8File } from '../../effects/node/module.f.ts'
import { defaultNodeProgramOptions, emptyState, virtual } from '../../effects/node/virtual/module.f.ts'
Expand Down
2 changes: 1 addition & 1 deletion fjs/djs/ast/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { sort } from '../../types/object/module.f.ts'
import { run } from './module.f.ts'
import { stringifyAsTree } from '../serializer/module.f.ts'
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'

export const proof = {
test: () => {
Expand Down
2 changes: 1 addition & 1 deletion fjs/djs/parser/module.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { setReplace, at, type OrderedMap } from '../../types/ordered_map/module.
import { fromMap } from '../../types/object/module.f.ts'
import type { AstArray, AstConst, AstModule, AstModuleRef } from '../ast/module.f.ts'
import type { TokenMetadata } from '../../js/tokenizer/module.f.ts'
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'

export type ParseError = {
readonly message: string,
Expand Down
2 changes: 1 addition & 1 deletion fjs/djs/parser/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { sort } from '../../types/object/module.f.ts'
import { stringToList } from '../../text/utf16/module.f.ts'
import { stringifyAsTree } from '../serializer/module.f.ts'
import { stringify } from '../../media/json/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'

const tokenizeString
: (s: string) => readonly DjsTokenWithMetadata[]
Expand Down
2 changes: 1 addition & 1 deletion fjs/djs/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { compile } from './module.f.ts'
import { virtual, emptyState } from '../effects/node/virtual/module.f.ts'
import { utf8, utf8ToString } from '../text/module.f.ts'
import type { Vec } from '../types/bit_vec/module.f.ts'
import { assert, assertEq } from '../asserts/module.f.ts'
import { assert, assertEq } from '../asserts/module.f.mjs'

const readOutput = (root: typeof emptyState.root, path: string): string => {
const file = root[path]
Expand Down
2 changes: 1 addition & 1 deletion fjs/djs/serializer/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { countRefs, stringify, stringifyAsTree } from './module.f.ts'
import { sort } from '../../types/object/module.f.ts'
import { identity } from '../../types/function/module.f.ts'
import { setProperty } from '../../media/json/module.f.ts'
import { assertEq } from '../../asserts/module.f.ts'
import { assertEq } from '../../asserts/module.f.mjs'

export const proof = {
stringify: [
Expand Down
2 changes: 1 addition & 1 deletion fjs/djs/tokenizer/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { descentParser } from '../../bnf/descent/module.f.ts'
import { stringToCodePointList, stringToList } from '../../text/utf16/module.f.ts'
import { toArray } from '../../types/list/module.f.ts'
import { jsGrammar, tokenizeString, descentParserCpOnly, tokenizeJs, tokenize } from './module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'
import { stringifyAsTree } from '../serializer/module.f.ts'
import { sort } from '../../types/object/module.f.ts'
import type { Unknown } from '../module.f.ts'
Expand Down
2 changes: 1 addition & 1 deletion fjs/djs/transpiler/proof.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { transpile } from './module.f.ts'
import { stringifyAsTree } from '../serializer/module.f.ts'
import { virtual, emptyState, type Dir } from '../../effects/node/virtual/module.f.ts'
import { utf8 } from '../../text/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'

const run = (root: Dir) => (path: string) => {
const [_, result] = virtual({ ...emptyState, root })(transpile(path))
Expand Down
2 changes: 1 addition & 1 deletion fjs/effects/eff/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { do_, match, pure } from '../module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'
import { assertPure } from '../proof.f.ts'
import { eff } from './module.f.ts'

Expand Down
2 changes: 1 addition & 1 deletion fjs/effects/memory/proof.f.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert, assertEq } from '../../asserts/module.f.ts'
import { assert, assertEq } from '../../asserts/module.f.mjs'
import { run, type MemOperationMap } from '../mock/module.f.ts'
import { pure, step } from '../module.f.ts'
import {
Expand Down
2 changes: 1 addition & 1 deletion fjs/effects/module.f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
* @module
*/

import { assert } from '../asserts/module.f.ts'
import { assert } from '../asserts/module.f.mjs'
import { fold, type List } from '../types/list/module.f.ts'
import { at } from '../types/object/module.f.ts'
import type { Option } from '../types/option/module.f.ts'
Expand Down
Loading
Loading