Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog/unreleased/1647.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- **BREAKING CHANGES:** `fjs/media/lock/types` drops its `LockMap` re-export
of `fjs/media/revision`'s type — import it from `fjs/media/revision/types.ts`
directly instead
2 changes: 1 addition & 1 deletion fjs/media/lock/proof.f.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @import { Object as JsonObject } from '../json/types.ts'
* @import { LockMap } from './types.ts'
* @import { LockMap } from '../revision/types.ts'
*/

import { assert, assertEq } from '../../asserts/module.f.mjs'
Expand Down
5 changes: 1 addition & 4 deletions fjs/media/lock/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
* Type-level API for `fjs/media/lock/module.f.mjs`: `Lock` and `LockError`.
*
* The map type itself is not restated here — it is `fjs/media/revision`'s
* `LockMap`, re-exported so a consumer of the shared form needs only one
* import, and so nothing can define a second, drifting spelling of it.
* `LockMap`; import it from there directly rather than through this module.
*/

import type { ValidationError } from '../../types/rtti/common/types.ts'
import type { Ts } from '../../types/rtti/ts/types.ts'
import type { lockSchema } from './module.f.mjs'

export type { LockMap } from '../revision/types.ts'

/** The TypeScript type derived from `lockSchema` — the single source of truth. */
export type Lock = Ts<typeof lockSchema>

Expand Down
1 change: 1 addition & 0 deletions fjs/types/rtti/module.f.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const option = t =>

/**
* Schema that never matches any value — the empty union, corresponding to TypeScript's `never`.
*
* @type {Or<readonly []>}
*/
export const never = or()
Loading