(plugins: unknown[])
| 116 | } |
| 117 | |
| 118 | export function findDcpPluginIndexes(plugins: unknown[]): number[] { |
| 119 | return plugins |
| 120 | .map((plugin, index) => (matchesPluginEntry(plugin, DCP_PLUGIN_NAME) ? index : -1)) |
| 121 | .filter((index) => index >= 0); |
| 122 | } |
| 123 | |
| 124 | function pluginEntryName(entry: unknown): string { |
| 125 | if (typeof entry === "string") return entry; |
no test coverage detected