Repository navigation
refactor(api): migrate Annotations from Flow to TypeScript - #4987
bonchevskyi wants to merge 1 commit into
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
|
No actionable comments were generated in the recent review. WalkthroughAdds an ChangesAnnotations API
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Refactor Sequence Diagram(s)sequenceDiagram
participant Annotations
participant MarkerBasedApi
participant successCallback
Annotations->>Annotations: Check can_create_annotations
Annotations->>MarkerBasedApi: Send annotation request
MarkerBasedApi-->>Annotations: Return annotation response
Annotations->>successCallback: Return formatted annotation
Possibly related PRs
Suggested reviewers: Merge Risk:
|
Convert
AnnotationsAPI to TypeScriptThis PR converts
src/api/Annotationsfrom JavaScript with Flow to TypeScript.Changes
src/api/Annotations.jstosrc/api/Annotations.tswith explicit return typessrc/api/__tests__/Annotations.test.jstoAnnotations.test.tssrc/api/Annotations.js.flow(original Flow source) for remaining Flow importers (Feed,APIFactory)Contract
getAnnotationsfileVersionIdis typedstring | undefinedbecause TypeScript does not allow an optional parameter before required ones; callers still pass it positionally, as with Flow'sfileVersionId?: stringSummary by CodeRabbit