Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEROM22 committed Dec 11, 2024
1 parent 281fa68 commit f83ee22
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/typedoc-signature/lib/main.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// TODO: remove flat()
import {type Entity, GroupEntity} from "@onlyoffice/library-declaration/next.ts"
import {isProjectReflection} from "@onlyoffice/typedoc-util-is-reflection"
import {type Declaration, type Entity, type Fragment, GroupEntity} from "@onlyoffice/library-declaration/next.ts"
import {type JSONOutput as J} from "typedoc"
import {concise} from "./internal/concise.ts"
import {verbose} from "./internal/verbose.ts"

export function compute(r: J.Reflection, e: Entity): void {
if (!isProjectReflection(r)) {
throw new Error("Expected a project reflection")
}
type FlatTrail = number[]

export interface ComputeRepository {
trailOf(t: Declaration | Fragment): FlatTrail | undefined
reflectionOf(t: FlatTrail): J.Reflection | undefined
}

export function compute(r: ComputeRepository, e: Entity): void {
if (e instanceof GroupEntity) {
return
}
Expand Down

0 comments on commit f83ee22

Please sign in to comment.