(
arg: T | {}
)
| 83 | // TODO: it might be possible to remove this if improvements to `Array.isArray` ever land |
| 84 | // related thread: github.com/microsoft/TypeScript/issues/36554 |
| 85 | function isArray<T>( |
| 86 | arg: T | {} |
| 87 | ): arg is T extends readonly any[] |
| 88 | ? unknown extends T |
| 89 | ? never |
| 90 | : readonly any[] |
| 91 | : any[] { |
| 92 | return Array.isArray(arg); |
| 93 | } |
| 94 | |
| 95 | export let read = async (cwd: string, packages?: Packages) => { |
| 96 | packages ??= await getPackages(cwd); |
no outgoing calls
no test coverage detected