orstrum_get_exports

Returns all exported symbols from a file with their kind and a compact signature extracted from the parsed AST.

Input

path required
string
File path. Absolute, cwd-relative, repo/relPath shorthand, or repo/relPath.md note form.

Output


  note: "api-service/src/lib/jwt",
  exports: [
    
      name:      "verifyJwt",
      kind:      "function",
      signature: "(token: string) => Promise<JwtPayload>"
    ,
    
      name:      "JwtPayload",
      kind:      "type",
      signature: null
    
  ]

Export kinds

Possible values for kind:

  • function
  • class
  • variable
  • type
  • interface
  • enum
  • namespace
  • reexport — a symbol re-exported from another module
  • default — the module's default export

Signatures are extracted directly from the parsed AST (ts-morph for TypeScript/JavaScript, tree-sitter for Python), so they reflect the declared symbols rather than a regex over the source.