( opts: TypescriptStarterArgsOptions )
| 55 | }; |
| 56 | |
| 57 | export function hasCLIOptions( |
| 58 | opts: TypescriptStarterArgsOptions |
| 59 | ): opts is TypescriptStarterUserOptions { |
| 60 | return (opts as TypescriptStarterUserOptions).projectName !== undefined; |
| 61 | } |
| 62 | |
| 63 | export function validateName(input: string): true | string { |
| 64 | return !validateNpmPackageName(input).validForNewPackages |