11// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22// See LICENSE in the project root for license information.
33
4- import type { CommandLineStringListParameter , CommandLineStringParameter } from '@rushstack/ts-command-line' ;
4+ import type {
5+ CommandLineStringListParameter ,
6+ IRequiredCommandLineStringParameter
7+ } from '@rushstack/ts-command-line' ;
58
69import type { RushCommandLineParser } from '../RushCommandLineParser' ;
710import { BaseHotlinkPackageAction } from './BaseHotlinkPackageAction' ;
@@ -13,7 +16,7 @@ import { Async } from '@rushstack/node-core-library';
1316import type { RushConfigurationProject } from '../../api/RushConfigurationProject' ;
1417
1518export class BridgePackageAction extends BaseHotlinkPackageAction {
16- private readonly _versionParameter : CommandLineStringParameter ;
19+ private readonly _versionParameter : IRequiredCommandLineStringParameter ;
1720 private readonly _subspaceNamesParameter : CommandLineStringListParameter ;
1821
1922 public constructor ( parser : RushCommandLineParser ) {
@@ -77,7 +80,7 @@ export class BridgePackageAction extends BaseHotlinkPackageAction {
7780 linkedPackagePath : string ,
7881 hotlinkManager : HotlinkManager
7982 ) : Promise < void > {
80- const version : string = this . _versionParameter . value ! ;
83+ const version : string = this . _versionParameter . value ;
8184 const subspaces : Set < Subspace > = this . _getSubspacesToBridgeAsync ( ) ;
8285 await Async . forEachAsync (
8386 subspaces ,
0 commit comments