编程技术网

关注微信公众号,定时推送前沿、专业、深度的编程技术资料。

 找回密码
 立即注册

QQ登录

只需一步,快速开始

极客时间

修复:快速基础 - “获取”和“ set”登录器必须具有相同的类型

作者: lipopli 2022-5-12 16:15:08 显示全部楼层 |阅读模式

fix: fast-foundation - 'get' and 'set' accessor must have the same type

Bug Report

在Angular11中,我会遇到以下错误。

Error: node_modules/@microsoft/fast-foundation/dist/fast-foundation.d.ts:5434:9 - error TS2380: 'get' and 'set' accessor must have the same type.

5434     set value(next: string | unknown): string;
     Error: node_modules/@microsoft/fast-foundation/dist/fast-foundation.d.ts:5435:9 - error TS2380: 'get' and 'set' accessor must have the same type.

5435     get value(): string;

Repro or Code Sample

Expected Behavior

两种类型都应匹配。

Current Behavior

Possible Solution

Context

Your Environment

OS & Device: MacOS Browser Google Chrome Version Latest
该问题来自:microsoft/fast/issues/5964 , 试试查看该项目更多issue.
腾讯云服务器 阿里云服务器
腾讯云服务器 腾讯云服务器
关注微信
^