diff --git a/src/styles.ts b/src/styles.ts index 7717a43f..c0c773a7 100644 --- a/src/styles.ts +++ b/src/styles.ts @@ -17,7 +17,7 @@ export interface ReactDiffViewerStyles { emptyGutter?: string; emptyLine?: string; codeFold?: string; - [key: string]: string; + [key: string]: string | undefined; } export interface ReactDiffViewerStylesOverride {