Skip to content
API/readString

readString

src/utils/read-path.tsfunction
readString(response: RawResponse, path: string): string | undefined

Read a path expected to hold a string.

Parameter Type Description
response RawResponse The raw response body
path string Dot-separated path

Returns — The string at that path, or undefined