microsoft / microsoft/TypeScript
New Error: error TS2590: Expression produces a union type that is too complex to represent
オープン
@weswigham がすでに取り組んでいます。
2021年7月22日 から。
Needs Investigation
Rescheduled
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
Baseline: TS 4.3.2
Test: e0648173719f8f2a01d775e326d8590556bb16cd
New error: error TS2590: Expression produces a union type that is too complex to represent.
Dependencies
"@fluentui/react-northstar": "^0.56.0",
"@types/react": "^16.9.11"
tsconfig.json
{
"compilerOptions": {
"strictNullChecks": true,
"skipLibCheck": true,
"jsx": "react",
}
}
test.tsx
import { Alignment, ComponentSlotStylesPrepared, TeamsThemeStylesProps, ToolbarCustomItemProps, ToolbarItemProps } from "@fluentui/react-northstar";
import * as React from "react";
// No error if this is absent or at the end of the file
type Unused = ComponentSlotStylesPrepared<NonNullable<TeamsThemeStylesProps["ToolbarCustomItem"]>, any>;
type ItemProps = ToolbarItemProps | ToolbarCustomItemProps;
type ItemPropsWithTooltip = ItemProps & {
key?: string;
tooltip?: string;
tooltipAlign?: Alignment;
};
declare const ToolbarItem: React.ElementType<ItemPropsWithTooltip>;
declare const props: ItemPropsWithTooltip;
const { tooltip, key, tooltipAlign, ...rest } = props;
const _ = <ToolbarItem {...rest} />; // TS2590
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。