Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmartThingsCommunity/smartthings-cli
/ isYAMLFileData
Function
isYAMLFileData
src/lib/file-util.ts:73–74 ·
view source on GitHub ↗
(data: unknown)
Source
from the content-addressed store, hash-verified
71
}
72
73
const
isYAMLFileData = (data: unknown): data is YAMLFileData =>
74
data !== null && typeof data ===
'object'
&& Object.keys(data).length > 0
75
76
export
const
readYAMLFile = (filename: string): YAMLFileData => {
77
try {
Callers
1
readYAMLFile
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected