StringifiedProperties overview
Type that is an alias for an array of StringifiedValue’s (see StringifiedValue.ts). It represents the output of the stringification process of the properties of a non-primitive value.
Table of contents
Destructors
toLength
Returns the length of self
Signature
export declare const toLength: MTypes.OneArgFunction<Type, number>
toLongestPropLength
Returns the length of the longest property of self
Signature
export declare const toLongestPropLength: MTypes.OneArgFunction<Type, number>
Models
Type (interface)
Type that represents a StringifiedValues
Signature
export interface Type extends ReadonlyArray<PPStringifiedValue.Type> {}
Utils
addMarkInBetween
Return a copy of self
with a mark added at the end of each stringified property except the last one
Signature
export declare const addMarkInBetween: (mark: ASText.Type) => MTypes.OneArgFunction<Type>
appendProperty
Return a copy of self
with property
added as a single-line StringifiedValue at the end
Signature
export declare const appendProperty: (property: ASText.Type) => MTypes.OneArgFunction<Type>
prependProperty
Return a copy of self
with property
added as a single-line StringifiedValue at the start
Signature
export declare const prependProperty: (property: ASText.Type) => MTypes.OneArgFunction<Type>
tabify
Returns a copy of self
in which each stringified property has been tabified with tab
Signature
export declare const tabify: (tab: ASText.Type) => MTypes.OneArgFunction<Type>
treeify
Returns a copy of self
in which treeIndentForFirstLineOfInitProps
has been prepended to the first line of all properties but the last, treeIndentForTailsLinesOfInitProps
has been prepended to all the lines but the first of all properties but the last, treeIndentForFirstLineOfLastProp
has been prepended to the first line of the last property, and treeIndentForTailLinesOfLastProp
has been prepended to all the lines but the first of last property.
Signature
export declare const treeify: ({
treeIndentForFirstLineOfInitProps,
treeIndentForTailLinesOfInitProps,
treeIndentForFirstLineOfLastProp,
treeIndentForTailLinesOfLastProp
}: {
readonly treeIndentForFirstLineOfInitProps: ASText.Type
readonly treeIndentForTailLinesOfInitProps: ASText.Type
readonly treeIndentForFirstLineOfLastProp: ASText.Type
readonly treeIndentForTailLinesOfLastProp: ASText.Type
}) => MTypes.OneArgFunction<Type>