UNPKG

@pierre/diffs

Version:

31 lines (30 loc) 1.33 kB
//#region src/utils/getDiffHunksRendererOptions.ts function getDiffHunksRendererOptions(options) { return { theme: options?.theme, disableLineNumbers: options?.disableLineNumbers, overflow: options?.overflow, collapsed: options?.collapsed, disableFileHeader: options?.disableFileHeader, disableVirtualizationBuffers: options?.disableVirtualizationBuffers, stickyHeader: options?.stickyHeader, preferredHighlighter: options?.preferredHighlighter, useCSSClasses: options?.useCSSClasses, useTokenTransformer: options?.useTokenTransformer, tokenizeMaxLineLength: options?.tokenizeMaxLineLength, tokenizeMaxLength: options?.tokenizeMaxLength, diffStyle: options?.diffStyle, diffIndicators: options?.diffIndicators, disableBackground: options?.disableBackground, hunkSeparators: typeof options?.hunkSeparators === "function" ? "custom" : options?.hunkSeparators, expandUnchanged: options?.expandUnchanged, collapsedContextThreshold: options?.collapsedContextThreshold, lineDiffType: options?.lineDiffType, maxLineDiffLength: options?.maxLineDiffLength, expansionLineCount: options?.expansionLineCount, headerRenderMode: options?.renderCustomHeader != null ? "custom" : "default" }; } //#endregion export { getDiffHunksRendererOptions }; //# sourceMappingURL=getDiffHunksRendererOptions.js.map