@pierre/diffs
Version:
1 lines • 1.75 kB
Source Map (JSON)
{"version":3,"file":"includesFileAnnotations.d.ts","names":["RenderRange","FILE_ANNOTATION_LINE_NUMBER","FILE_ANNOTATION_HUNK_INDEX","FILE_ANNOTATION_LINE_INDEX","FILE_ANNOTATION_DOM_KEY","AnnotationLineMap","TAnnotation","Record","FileLevelAnnotationLike","includesFileAnnotations","getFileAnnotations","shouldRenderFileAnnotations"],"sources":["../../src/utils/includesFileAnnotations.d.ts"],"sourcesContent":["import type { RenderRange } from '../types';\nexport declare const FILE_ANNOTATION_LINE_NUMBER = 0;\nexport declare const FILE_ANNOTATION_HUNK_INDEX = -1;\nexport declare const FILE_ANNOTATION_LINE_INDEX = -1;\nexport declare const FILE_ANNOTATION_DOM_KEY: string;\ntype AnnotationLineMap<TAnnotation> = Record<number, TAnnotation[] | undefined>;\ntype FileLevelAnnotationLike = {\n lineNumber: number;\n};\nexport declare function includesFileAnnotations(annotations: readonly FileLevelAnnotationLike[] | undefined): boolean;\nexport declare function getFileAnnotations<TAnnotation>(annotations: AnnotationLineMap<TAnnotation>): TAnnotation[] | undefined;\nexport declare function shouldRenderFileAnnotations(renderRange: RenderRange): boolean;\nexport {};\n//# sourceMappingURL=includesFileAnnotations.d.ts.map"],"mappings":";;;cACqBC,2BAAAA;cACAC,0BAAAA;AADAD,cAEAE,0BAAAA,GAF2B,CAAA,CAAA;AAC3BD,cAEAE,uBAF0B,EAAA,MAAA;AAC/C,KAEKC,iBAFgBF,CAAAA,WAA0B,CAAA,GAETI,MAFS,CAAA,MAAA,EAEMD,WAFN,EAAA,GAAA,SAAA,CAAA;AAC/C,KAEKE,uBAAAA,GAF+C;EAC/CH,UAAAA,EAAAA,MAAAA;AAAuC,CAAA;AAIpBI,iBAAAA,uBAAAA,CAA8CD,WAAAA,EAAAA,SAAAA,uBAAuB,EAAA,GAAA,SAAA,CAAA,EAAA,OAAA;AACrEE,iBAAAA,kBAAkBJ,CAAAA,WAAA,CAAA,CAAA,WAAA,EAA2BD,iBAA3B,CAA6CC,WAA7C,CAAA,CAAA,EAA4DA,WAA5D,EAAA,GAAA,SAAA;AAA6CA,iBAC/DK,2BAAAA,CAD+DL,WAAAA,EACtBN,WADsBM,CAAAA,EAAAA,OAAAA"}