我必须显示大写的给定字符串"angular“的第一个字母,也只需要显示一个字符。它工作得很好,但当我进行生产构建(ng build --prod)时,它抛出了错误Argument of type '{}[]' is not assignable to parameter of type 'stringapp.component.ts: name = 'angular '; app.component.html:{{名称|切片:0:1|标题大小写}} 输出:a 请帮助我解决此错误
出现错误:Argument of type 'Events.SessionCreationStarting' is not assignable to parameter of type 'stringSessionCreationStarting, SessionCreationFailed,
type EventKey<T extends EventMap> =
我的代码: ?path.resolve('ab', 'config');application/libs/config.ts:18:20 - error TS2345: Argument of type 'string| undefined' is not assignable to parameter of type '