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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@glossarist/concept-browser",
"version": "0.7.48",
"version": "0.7.49",
"description": "Vue SPA for browsing Glossarist terminology datasets with cross-reference resolution, graph visualization, and multi-language support",
"type": "module",
"bin": {
Expand Down
2 changes: 0 additions & 2 deletions src/adapters/non-verbal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export type {
NonVerbalReference,
} from './types';

export { isFigure, isTable, isFormula } from './types';

export { figureFromJsonLd } from './figure-bridge';
export { tableFromJsonLd } from './table-bridge';
export { formulaFromJsonLd } from './formula-bridge';
Expand Down
20 changes: 4 additions & 16 deletions src/adapters/non-verbal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ export type NonVerbalEntity = Figure | Table | Formula;
*
* glossarist-js's runtime `NonVerbRep` (post-V3 reshape) holds the same
* localized fields as `NonVerbalEntityBase` plus a `type` discriminator
* and an `images[]` array. The published `.d.ts` still describes the
* pre-V3 `ref`/`text` shape; this local interface lets consumer code
* type-check against reality. Remove when upstream ships a corrected
* `.d.ts` (TODO.figures/19).
* and an `images[]` array. The published `.d.ts` (still stale at v0.4.2)
* describes the pre-V3 `ref`/`text` shape; this local interface lets
* consumer code type-check against reality. Drop when upstream ships a
* corrected `.d.ts`.
*/
export interface NonVerbRepV3 extends NonVerbalEntityBase {
type: string | null;
Expand All @@ -119,15 +119,3 @@ export interface NonVerbalReference {
entityId: string;
display?: string;
}

export function isFigure(entity: NonVerbalEntity): entity is Figure {
return entity.kind === 'figure';
}

export function isTable(entity: NonVerbalEntity): entity is Table {
return entity.kind === 'table';
}

export function isFormula(entity: NonVerbalEntity): entity is Formula {
return entity.kind === 'formula';
}