MCPcopy 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
73const isYAMLFileData = (data: unknown): data is YAMLFileData =>
74 data !== null && typeof data === 'object' && Object.keys(data).length > 0
75
76export const readYAMLFile = (filename: string): YAMLFileData => {
77 try {

Callers 1

readYAMLFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected