@eryx/data/toml/cst Module

Summary

Functions

cst.fromDecoded(source: string, decoded: { [any]: any }, cstData: any?) → any
cst.newEmpty() → any
cst.isCSTObject(value: any) → boolean
cst.getSourceIfUnchanged(value: any) → string?
cst.getOriginalSource(value: any) → string?
cst.getSemanticRoot(value: any) → { [any]: any }
cst.getStyleMap(value: any) → { [string]: string }
cst.getCommentMap(value: any) → { [string]: string }
cst.getAssignmentMap(value: any) → { [string]: any }
cst.getHeaderMap(value: any) → { [string]: any }
cst.getChangedPathMap(value: any) → { [string]: number }
cst.getValueAtPath(value: any, path: { string }) → any
cst.toTable(value: any) → { [any]: any }
cst.setStyle(value: any, path: any, style: string) → ()
cst.getStyle(value: any, path: any) → string?
cst.setComment(value: any, path: any, comment: string, where: string?) → ()
cst.getComment(value: any, path: any, where: string?) → string?

API Reference

Functions

cst.fromDecoded

cst.fromDecoded(source: string, decoded: { [any]: any }, cstData: any?) → any

cst.newEmpty

cst.newEmpty() → any

cst.isCSTObject

cst.isCSTObject(value: any) → boolean

cst.getSourceIfUnchanged

cst.getSourceIfUnchanged(value: any) → string?

cst.getOriginalSource

cst.getOriginalSource(value: any) → string?

cst.getSemanticRoot

cst.getSemanticRoot(value: any) → { [any]: any }

cst.getStyleMap

cst.getStyleMap(value: any) → { [string]: string }

cst.getCommentMap

cst.getCommentMap(value: any) → { [string]: string }

cst.getAssignmentMap

cst.getAssignmentMap(value: any) → { [string]: any }

cst.getHeaderMap

cst.getHeaderMap(value: any) → { [string]: any }

cst.getChangedPathMap

cst.getChangedPathMap(value: any) → { [string]: number }

cst.getValueAtPath

cst.getValueAtPath(value: any, path: { string }) → any

cst.toTable

cst.toTable(value: any) → { [any]: any }

cst.setStyle

cst.setStyle(value: any, path: any, style: string) → ()

cst.getStyle

cst.getStyle(value: any, path: any) → string?

cst.setComment

cst.setComment(value: any, path: any, comment: string, where: string?) → ()

cst.getComment

cst.getComment(value: any, path: any, where: string?) → string?