MCPcopy
hub / github.com/date-fns/date-fns / extractRefs

Function extractRefs

pkgs/docs/src/json.ts:87–97  ·  view source on GitHub ↗
(refl: DeclarationReflection)

Source from the content-addressed store, hash-verified

85}
86
87function extractRefs(refl: DeclarationReflection) {
88 const refs = new Set<number>();
89
90 traverseRefs(refl, (ref) => {
91 // id might be undefined for some reason
92 if (ref.target === undefined) return;
93 refs.add(ref.target);
94 });
95
96 return refs;
97}
98
99interface RefType extends ReferenceType {
100 target?: number;

Callers 1

recoverRefsFunction · 0.85

Calls 1

traverseRefsFunction · 0.85

Tested by

no test coverage detected