Skip to content

Public TypeScript definitions out of sync with runtime #6

Description

@krwg

Summary

glyph-s.d.ts signatures do not match actual exports and call shapes.

Target milestone: 2.8.5
Work branch: 2.8.5/issue-6-typescript-defs


Problem

Symbol Mismatch
createSearchEngine .d.ts: (items, opts) — runtime: (options) object
snippetForItem .d.ts: object — runtime: string + different args
ParsedSearchQuery missing flat filter fields
Missing exports embedTextSync, matchesSearchFilters, ollama, corpus-idb

Expected behavior

Consumers get accurate IDE types for all public exports.

Suggested approach

Regenerate or hand-fix lib/glyph-s.d.ts; align with lib/index.js.

Files / areas

  • lib/glyph-s.d.ts
  • package.json "types"

Acceptance criteria

  • All public exports typed
  • tsc --noEmit with consumer fixture passes

Metadata

Field Value
Priority P1
Milestone 2.8.5
Branch 2.8.5/issue-6-typescript-defs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Important quality UX or publish blockerengineCore engine logicenhancementImprovement or new capability

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions