Syntax highlight state values

Summary: This adds simple syntax highlighting for state value in the table.

Differential Revision: D21223208

fbshipit-source-id: 82b474cf19e3e13f5ebe5c474dc0f7d41cf4a56a
This commit is contained in:
Scott Kyle
2020-04-28 15:50:42 -07:00
committed by Facebook GitHub Bot
parent cdc851f281
commit 39a384e33d

View File

@@ -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);
}