/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Possible versions that can be automatically migrated by `ng update`. */ export enum TargetVersion { V6 = 'version 6', V7 = 'version 7', V8 = 'version 8', } /** * Returns all versions that are supported by "ng update". The versions are determined * based on the "TargetVersion" enum. */ export function getAllVersionNames(): string[] { return Object.keys(TargetVersion) .filter(enumValue => typeof TargetVersion[enumValue] === 'number'); }