TypeViewProps
type TypeViewProps<Value, Type> = { display?: string forceType?: boolean key?: PropertyKey keyDelim?: string keyPrefix?: string keyStyle?: HTMLAttributes<HTMLDivElement>['style'] length?: number match?: boolean note?: { description?: string title?: string } path?: PropertyKey[] showKey?: boolean showLength?: boolean type?: Type value: Value}Type Parameters
Section titled “Type Parameters”Value = unknown
Type = ValueType
Properties
Section titled “Properties”display?
Section titled “display?”optional display?: string;Representation of value.
Use to customize how a value is represented while still being able to pass the original value for other purposes
forceType?
Section titled “forceType?”optional forceType?: boolean;Force type indicator visibility for this node
optional key?: PropertyKey;keyDelim?
Section titled “keyDelim?”optional keyDelim?: string;Key delimiter
keyPrefix?
Section titled “keyPrefix?”optional keyPrefix?: string;Prefix for key e.g. “get” or “static”
keyStyle?
Section titled “keyStyle?”optional keyStyle?: HTMLAttributes<HTMLDivElement>["style"];Style overrides for key
length?
Section titled “length?”optional length?: number;Number of child entries / items.
Also determines if expandables can be expanded (needs to be not undefined/null/zero).
match?
Section titled “match?”optional match?: boolean;The node is a search match
optional note?: { description?: string; title?: string;};Title / description for node note, e.g. “parsed” for parsed JSON strings
description?
Section titled “description?”optional description?: string;title?
Section titled “title?”optional title?: string;optional path?: PropertyKey[];Path of the node
showKey?
Section titled “showKey?”optional showKey?: boolean;Should key be shown
showLength?
Section titled “showLength?”optional showLength?: boolean;Should the node show it’s given length / count
optional type?: Type;Type of the value
value: Value