From 39a384e33d9bfb93b249970fbfd8e1feb9995cfc Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Tue, 28 Apr 2020 15:50:42 -0700 Subject: [PATCH] Syntax highlight state values Summary: This adds simple syntax highlighting for state value in the table. Differential Revision: D21223208 fbshipit-source-id: 82b474cf19e3e13f5ebe5c474dc0f7d41cf4a56a --- desktop/types/json-format-highlight.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 desktop/types/json-format-highlight.d.ts diff --git a/desktop/types/json-format-highlight.d.ts b/desktop/types/json-format-highlight.d.ts new file mode 100644 index 000000000..02359c36f --- /dev/null +++ b/desktop/types/json-format-highlight.d.ts @@ -0,0 +1,21 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ + +declare module 'json-format-highlight' { + export interface ColorOptions { + keyColor?: string; + numberColor?: string; + stringColor?: string; + trueColor?: string; + falseColor?: string; + nullColor?: string; + } + + export default function (json: any, colorOptions?: ColorOptions); +}