UNPKG

@scalar/types

Version:

Types to work with Scalar packages

3 lines (2 loc) 225 B
/** Typeguard to check to narrow the configs to the one with sources */ export const isConfigurationWithSources = (config) => Boolean(!Array.isArray(config) && config && 'sources' in config && Array.isArray(config.sources));