mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
6 lines
227 B
TypeScript
6 lines
227 B
TypeScript
import { IChangeRequest } from './changeRequest.types';
|
|
|
|
export const changesCount = (changeRequest: IChangeRequest) =>
|
|
changeRequest.features.flatMap(feature => feature.changes).length +
|
|
changeRequest.segments.length;
|