Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break Pick and Omit #53188

Closed
wants to merge 3 commits into from
Closed

Conversation

RyanCavanaugh
Copy link
Member

Per discussion in #53169

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Mar 9, 2023
@RyanCavanaugh
Copy link
Member Author

@typescript-bot test this
@typescript-bot test top100
@typescript-bot user test this
@typescript-bot user test tsserver
@typescript-bot test tsserver top100
@typescript-bot run dt
@typescript-bot perf test this

buckle up!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 9, 2023

Heya @RyanCavanaugh, I've started to run the diff-based top-repos suite (tsserver) on this PR at 25014ed. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 9, 2023

Heya @RyanCavanaugh, I've started to run the diff-based user code test suite (tsserver) on this PR at 25014ed. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 9, 2023

Heya @RyanCavanaugh, I've started to run the extended test suite on this PR at 25014ed. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 9, 2023

Heya @RyanCavanaugh, I've started to run the parallelized Definitely Typed test suite on this PR at 25014ed. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 9, 2023

Heya @RyanCavanaugh, I've started to run the perf test suite on this PR at 25014ed. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 9, 2023

Heya @RyanCavanaugh, I've started to run the diff-based top-repos suite on this PR at 25014ed. You can monitor the build here.

Update: The results are in! Part 1, Part 2, Part 3

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 9, 2023

Heya @RyanCavanaugh, I've started to run the diff-based user code test suite on this PR at 25014ed. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh Here are the results of running the user test suite comparing main and refs/pull/53188/merge:

Something interesting changed - please have a look.

Details

puppeteer

packages/browsers/test/src/tsconfig.json

packages/puppeteer-core/tsconfig.json

packages/puppeteer/tsconfig.json

TypeScript-Node-Starter

tsconfig.json

webpack

tsconfig.types.json

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh Here are the results of running the user test suite comparing main and refs/pull/53188/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

Heya @RyanCavanaugh, I've run the RWC suite on this PR - assuming you're on the TS core team, you can view the resulting diff here.

@typescript-bot
Copy link
Collaborator

Hey @RyanCavanaugh, the results of running the DT tests are ready.
There were interesting changes:
Changes are too big to display here, please check the log.
You can check the log here.

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh Here are the results of running the top-repos suite comparing main and refs/pull/53188/merge:

Something interesting changed - please have a look.

Details

Eugeny/tabby

19 of 29 projects failed to build with the old tsc and were ignored

tabby-plugin-manager/tsconfig.json

tabby-settings/tsconfig.json

tabby-settings/tsconfig.typings.json

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh Here are some more interesting changes from running the top-repos suite

Details

excalidraw/excalidraw

2 of 5 projects failed to build with the old tsc and were ignored

tsconfig-types.json

  • error TS2345: Argument of type '{ penDetected: true; penMode: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand"; customType: null; } | { ...; }); multiElement: null; selectedElementIds: {}; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { contextMenu: null; editingElement: NonDeletedExcalidrawElement | null; viewModeEnabled: boolean; zenModeEnabled: boolean; gridSize: number | null; theme: string; name: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isBindingEnabled: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { isLoading: boolean; theme: string; contextMenu: { items: ContextMenuItems; top: number; left: number; } | null; ... 62 more ...; selectedLinearElement: LinearElementEditor | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ theme: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isLoading: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{}' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ showWelcomeScreen: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand"; customType: null; } | { ...; }); }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ showHyperlinkPopup: false; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ viewModeEnabled: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ zenModeEnabled: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ gridSize: number | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ name: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ scrolledOutside: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { offsetTop: number; offsetLeft: number; } | null' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: {}; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ previousSelectedElementIds: {}; selectedElementIds: { [id: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: { [x: string]: true; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ pasteDialog: { data: Spreadsheet; shown: true; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: { [k: string]: true; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { activeTool: { locked: boolean; lastActiveTool: LastActiveTool; type: "line" | "arrow" | "text" | "selection" | ... 6 more ... | "hand"; customType: null; } | { ...; } | { ...; } | { ...; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { penMode: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ scrollX: number; scrollY: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ toast: { message: string; closable?: boolean | undefined; duration?: number | undefined; } | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: any; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ collaborators: Map<string, Collaborator>; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openSidebar: "library" | "customSidebar" | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openDialog: "help"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openDialog: "imageExport"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { scrollX: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { scrollY: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isBindingEnabled: false; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: LinearElementEditor; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openPopup: "backgroundColorPicker"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openPopup: "strokeColorPicker"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: {}; selectedGroupIds: {}; editingGroupId: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ suggestedBindings: never[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand"; customType: null; } | { ...; }); selectedElementIds: {}; selectedGroupIds: {}; editingGroupId: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & { type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand"; customType: null; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { scrollX: number; scrollY: number; zoom: { value: NormalizedZoomValue; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { selectedElementIds: { [x: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: null; editingElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingElement: NonDeleted<ExcalidrawTextElement>; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { zoom: { value: NormalizedZoomValue; }; scrollX: number; scrollY: number; shouldCacheIgnoreZoom: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ showHyperlinkPopup: "info"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: { hoverPointIndex: number; elementId: string & { _brand: "excalidrawLinearElementId"; }; selectedPointsIndices: readonly number[] | null; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<...> | null; segmentMidpoint:...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: { segmentMidPointHoveredCoords: readonly [number, number] | null; elementId: string & { _brand: "excalidrawLinearElementId"; }; selectedPointsIndices: readonly number[] | null; ... 6 more ...; hoverPointIndex: number; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ contextMenu: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { penMode: true; penDetected: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ lastPointerDownWith: "mouse" | "pen" | "touch"; cursorButton: "down"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: ExcalidrawElement; editingElement: ExcalidrawElement; pendingImageElementId: null; multiElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ cursorButton: "up"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ resizingElement: NonDeletedExcalidrawElement; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: LinearElementEditor; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ previousSelectedElementIds: { [id: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: NonDeleted<ExcalidrawFreeDrawElement>; editingElement: NonDeleted<ExcalidrawFreeDrawElement>; startBoundElement: NonDeleted<...> | null; suggestedBindings: never[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: NonDeleted<ExcalidrawLinearElement>; editingElement: NonDeleted<ExcalidrawLinearElement>; startBoundElement: NonDeleted<...> | null; suggestedBindings: never[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectionElement: Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: FillStyle; strokeWidth: number; strokeStyle: StrokeStyle; ... 15 more ...; customData?: Record<...> | undefined; }> & { ...; } & { ...; }; draggingElement: Readonly<...> & ... 1 more ... & { ...;...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ multiElement: null; draggingElement: (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: FillStyle; strokeWidth: number; strokeStyle: StrokeStyle; ... 15 more ...; customData?: Record<...> | undefined; }> & { ...; } & { ...; }) | (Readonly<...> & ... 1 more ... & ...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: { pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<{ x: number; y: number; }> | null; segmentMidpoint: { ...; }; }>; ... 8 more ...; segmentMidPointHoveredCoords: readonly [...] | null; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: { pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<{ x: number; y: number; }> | null; segmentMidpoint: { ...; }; }>; ... 8 more ...; segmentMidPointHoveredCoords: readonly [...] | null; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: { isDragging: true; elementId: string & { _brand: "excalidrawLinearElementId"; }; selectedPointsIndices: readonly number[] | null; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<...> | null; segmentMidpoint: { ...; ...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: { isDragging: true; elementId: string & { _brand: "excalidrawLinearElementId"; }; selectedPointsIndices: readonly number[] | null; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<...> | null; segmentMidpoint: { ...;...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ scrollX: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ scrollY: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isResizing: false; isRotating: false; resizingElement: null; selectionElement: null; cursorButton: "up"; editingElement: NonDeletedExcalidrawElement | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: LinearElementEditor; suggestedBindings: never[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: { selectedPointsIndices: null; elementId: string & { _brand: "excalidrawLinearElementId"; }; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<...> | null; segmentMidpoint: { ...; }; }>; ... 6 more ...; segmentMidPoin...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ pendingImageElementId: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ multiElement: Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: FillStyle; strokeWidth: number; strokeStyle: StrokeStyle; ... 15 more ...; customData?: Record<...> | undefined; }> & Readonly<...> & { ...; }; editingElement: NonDeletedExcalidrawElement | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ suggestedBindings: never[]; startBoundElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { draggingElement: null; activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "line" | ... 9 more ... | "hand"; customType: null; } | { ...; }); selectedElementIds: { ...; }; selectedLinearElement: LinearElementEditor; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { draggingElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(_prevState: Readonly<AppState>) => { selectedGroupIds: { [x: string]: boolean; }; selectedElementIds: { [x: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(_prevState: Readonly<AppState>) => { selectedElementIds: { [x: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: null; suggestedBindings: never[]; activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "line" | "arrow" | "text" | "selection" | ... 6 more ... | "hand"; customType: null; } | { ...; }); }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: null; suggestedBindings: never[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ pendingImageElementId: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ pendingImageElementId: null; editingElement: null; activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "line" | "arrow" | "text" | "selection" | ... 6 more ... | "hand"; customType: null; } | { ...; }); }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isBindingEnabled: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ suggestedBindings: NonDeleted<ExcalidrawBindableElement>[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ suggestedBindings: SuggestedBinding[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { selectedElementIds: {}; selectedGroupIds: {}; editingGroupId: string | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: {}; previousSelectedElementIds: { [id: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isLoading: false; errorMessage: any; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ contextMenu: { top: number; left: number; items: ContextMenuItems; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isResizing: boolean; isRotating: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { shouldCacheIgnoreZoom: true; scrollX: number; scrollY: number; zoom: { value: NormalizedZoomValue; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '({ zoom, scrollX }: Readonly<AppState>) => { scrollX: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '({ zoom, scrollX, scrollY }: Readonly<AppState>) => { scrollX: number; scrollY: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ shouldCacheIgnoreZoom: false; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ width: number; height: number; offsetLeft: number; offsetTop: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ offsetTop: number; offsetLeft: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{}' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openMenu: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ contextMenu: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openDialog: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: any; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ fileHandle: FileSystemHandle; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ pasteDialog: { shown: false; data: null; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ scrollX: number; scrollY: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openSidebar: "library" | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openSidebar: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: {}; selectedGroupIds: {}; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ currentChartType: ChartType; pasteDialog: { shown: false; data: null; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isSidebarDocked: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openDialog: "imageExport"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openDialog: "jsonExport"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openMenu: "canvas" | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openSidebar: "library"; }' is not assignable to parameter of type 'AppState | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | Pick<AppState, keyof AppState> | null) | Pick<...> | null'.
  • error TS2322: Type '{ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw"; version: number; versionNonce: number; isDeleted: boolean; id: string; fillStyle: FillStyle; ... 17 more ...; locked: boolean; }' is not assignable to type 'Pick<T, "link" | "id" | "x" | "y" | "strokeColor" | "backgroundColor" | "fillStyle" | "strokeWidth" | "strokeStyle" | "roundness" | "roughness" | "opacity" | "width" | "height" | ... 10 more ... | "type"> & { ...; }'.
  • error TS2345: Argument of type '{ showHyperlinkPopup: "info"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ showHyperlinkPopup: false; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ showHyperlinkPopup: "editor"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: { selectedPointsIndices: number[] | null; elementId: string & { _brand: "excalidrawLinearElementId"; }; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<...> | null; segmentMidpoint: { ...; }; }>; ... 6 more ...; segm...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ elements: ExcalidrawElement[]; appState: { viewBackgroundColor: string; }; }' is not assignable to parameter of type '{ elements?: readonly ExcalidrawElement[] | null | undefined; appState?: Pick<AppState, keyof AppState> | null | undefined; collaborators?: Map<...> | undefined; commitToHistory?: boolean | undefined; }'.

tsconfig.json

  • error TS2345: Argument of type '{ penDetected: true; penMode: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "text" | "ellipse" | "image" | "line" | "selection" | "rectangle" | "diamond" | "arrow" | "freedraw" | "eraser" | "hand"; customType: null; } | { ...; }); multiElement: null; selectedElementIds: {}; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { contextMenu: null; editingElement: NonDeletedExcalidrawElement | null; viewModeEnabled: boolean; zenModeEnabled: boolean; gridSize: number | null; theme: string; name: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isBindingEnabled: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { isLoading: boolean; theme: string; contextMenu: { items: ContextMenuItems; top: number; left: number; } | null; ... 62 more ...; selectedLinearElement: LinearElementEditor | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ theme: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isLoading: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{}' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ showWelcomeScreen: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "text" | "ellipse" | "image" | "line" | "selection" | "rectangle" | "diamond" | "arrow" | "freedraw" | "eraser" | "hand"; customType: null; } | { ...; }); }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ showHyperlinkPopup: false; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ viewModeEnabled: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ zenModeEnabled: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ gridSize: number | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ name: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ scrolledOutside: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { offsetTop: number; offsetLeft: number; } | null' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: {}; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ previousSelectedElementIds: {}; selectedElementIds: { [id: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: { [x: string]: true; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ pasteDialog: { data: Spreadsheet; shown: true; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: { [k: string]: true; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { activeTool: { locked: boolean; lastActiveTool: LastActiveTool; type: "text" | "ellipse" | "image" | "line" | ... 6 more ... | "hand"; customType: null; } | { ...; } | { ...; } | { ...; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { penMode: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ scrollX: number; scrollY: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ toast: { message: string; closable?: boolean | undefined; duration?: number | undefined; } | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: any; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ collaborators: Map<string, Collaborator>; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openSidebar: "library" | "customSidebar" | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openDialog: "help"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openDialog: "imageExport"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { scrollX: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { scrollY: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isBindingEnabled: false; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: LinearElementEditor; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openPopup: "backgroundColorPicker"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openPopup: "strokeColorPicker"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: {}; selectedGroupIds: {}; editingGroupId: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ suggestedBindings: never[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "text" | "ellipse" | "image" | "line" | "selection" | "rectangle" | "diamond" | "arrow" | "freedraw" | "eraser" | "hand"; customType: null; } | { ...; }); selectedElementIds: {}; selectedGroupIds: {}; editingGroupId: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & { type: "text" | "ellipse" | "image" | "line" | "selection" | "rectangle" | "diamond" | "arrow" | "freedraw" | "eraser" | "hand"; customType: null; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { scrollX: number; scrollY: number; zoom: { value: NormalizedZoomValue; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { selectedElementIds: { [x: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: null; editingElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingElement: NonDeleted<ExcalidrawTextElement>; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { zoom: { value: NormalizedZoomValue; }; scrollX: number; scrollY: number; shouldCacheIgnoreZoom: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ showHyperlinkPopup: "info"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: { hoverPointIndex: number; elementId: string & { _brand: "excalidrawLinearElementId"; }; selectedPointsIndices: readonly number[] | null; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<...> | null; segmentMidpoint:...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: { segmentMidPointHoveredCoords: readonly [number, number] | null; elementId: string & { _brand: "excalidrawLinearElementId"; }; selectedPointsIndices: readonly number[] | null; ... 6 more ...; hoverPointIndex: number; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ contextMenu: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { penMode: true; penDetected: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ lastPointerDownWith: "mouse" | "pen" | "touch"; cursorButton: "down"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: ExcalidrawElement; editingElement: ExcalidrawElement; pendingImageElementId: null; multiElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ cursorButton: "up"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ resizingElement: NonDeletedExcalidrawElement; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: LinearElementEditor; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ previousSelectedElementIds: { [id: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: NonDeleted<ExcalidrawFreeDrawElement>; editingElement: NonDeleted<ExcalidrawFreeDrawElement>; startBoundElement: NonDeleted<...> | null; suggestedBindings: never[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: NonDeleted<ExcalidrawLinearElement>; editingElement: NonDeleted<ExcalidrawLinearElement>; startBoundElement: NonDeleted<...> | null; suggestedBindings: never[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectionElement: Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: FillStyle; strokeWidth: number; strokeStyle: StrokeStyle; ... 15 more ...; customData?: Record<...> | undefined; }> & { ...; } & { ...; }; draggingElement: Readonly<...> & ... 1 more ... & { ...;...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ multiElement: null; draggingElement: (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: FillStyle; strokeWidth: number; strokeStyle: StrokeStyle; ... 15 more ...; customData?: Record<...> | undefined; }> & { ...; } & { ...; }) | (Readonly<...> & ... 1 more ... & ...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: { pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<{ x: number; y: number; }> | null; segmentMidpoint: { ...; }; }>; ... 8 more ...; segmentMidPointHoveredCoords: readonly [...] | null; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: { pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<{ x: number; y: number; }> | null; segmentMidpoint: { ...; }; }>; ... 8 more ...; segmentMidPointHoveredCoords: readonly [...] | null; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: { isDragging: true; elementId: string & { _brand: "excalidrawLinearElementId"; }; selectedPointsIndices: readonly number[] | null; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<...> | null; segmentMidpoint: { ...; ...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: { isDragging: true; elementId: string & { _brand: "excalidrawLinearElementId"; }; selectedPointsIndices: readonly number[] | null; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<...> | null; segmentMidpoint: { ...;...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ scrollX: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ scrollY: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isResizing: false; isRotating: false; resizingElement: null; selectionElement: null; cursorButton: "up"; editingElement: NonDeletedExcalidrawElement | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: LinearElementEditor; suggestedBindings: never[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedLinearElement: { selectedPointsIndices: null; elementId: string & { _brand: "excalidrawLinearElementId"; }; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<...> | null; segmentMidpoint: { ...; }; }>; ... 6 more ...; segmentMidPoin...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ pendingImageElementId: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ multiElement: Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: FillStyle; strokeWidth: number; strokeStyle: StrokeStyle; ... 15 more ...; customData?: Record<...> | undefined; }> & Readonly<...> & { ...; }; editingElement: NonDeletedExcalidrawElement | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ suggestedBindings: never[]; startBoundElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { draggingElement: null; activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "text" | ... 9 more ... | "hand"; customType: null; } | { ...; }); selectedElementIds: { ...; }; selectedLinearElement: LinearElementEditor; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { draggingElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(_prevState: Readonly<AppState>) => { selectedGroupIds: { [x: string]: boolean; }; selectedElementIds: { [x: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(_prevState: Readonly<AppState>) => { selectedElementIds: { [x: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: null; suggestedBindings: never[]; activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "text" | "ellipse" | "image" | "line" | ... 6 more ... | "hand"; customType: null; } | { ...; }); }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ draggingElement: null; suggestedBindings: never[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ pendingImageElementId: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ pendingImageElementId: null; editingElement: null; activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ type: "text" | "ellipse" | "image" | "line" | ... 6 more ... | "hand"; customType: null; } | { ...; }); }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isBindingEnabled: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ suggestedBindings: NonDeleted<ExcalidrawBindableElement>[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ suggestedBindings: SuggestedBinding[]; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(prevState: Readonly<AppState>) => { selectedElementIds: {}; selectedGroupIds: {}; editingGroupId: string | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: {}; previousSelectedElementIds: { [id: string]: boolean; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isLoading: false; errorMessage: any; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ contextMenu: { top: number; left: number; items: ContextMenuItems; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isResizing: boolean; isRotating: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '(state: Readonly<AppState>) => { shouldCacheIgnoreZoom: true; scrollX: number; scrollY: number; zoom: { value: NormalizedZoomValue; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '({ zoom, scrollX }: Readonly<AppState>) => { scrollX: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '({ zoom, scrollX, scrollY }: Readonly<AppState>) => { scrollX: number; scrollY: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ shouldCacheIgnoreZoom: false; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ width: number; height: number; offsetLeft: number; offsetTop: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ offsetTop: number; offsetLeft: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{}' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openMenu: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ contextMenu: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openDialog: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: any; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ fileHandle: FileSystemHandle; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ pasteDialog: { shown: false; data: null; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ scrollX: number; scrollY: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openSidebar: "library" | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: string; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openSidebar: null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: {}; selectedGroupIds: {}; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ currentChartType: ChartType; pasteDialog: { shown: false; data: null; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isSidebarDocked: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ isSidebarDocked: boolean; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openDialog: "imageExport"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openDialog: "jsonExport"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openMenu: "canvas" | null; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ openSidebar: "library"; }' is not assignable to parameter of type 'AppState | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | Pick<AppState, keyof AppState> | null) | Pick<...> | null'.
  • error TS2322: Type '{ type: "text" | "ellipse" | "image" | "line" | "selection" | "rectangle" | "diamond" | "arrow" | "freedraw"; version: number; versionNonce: number; isDeleted: boolean; id: string; fillStyle: FillStyle; ... 17 more ...; locked: boolean; }' is not assignable to type 'Pick<T, "strokeWidth" | "width" | "height" | "id" | "type" | "link" | "opacity" | "seed" | "version" | "x" | "y" | "strokeColor" | "backgroundColor" | "fillStyle" | "strokeStyle" | ... 9 more ... | "customData"> & { ...; }'.
  • error TS2345: Argument of type '{ showHyperlinkPopup: "info"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ showHyperlinkPopup: false; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ showHyperlinkPopup: "editor"; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ editingLinearElement: { selectedPointsIndices: number[] | null; elementId: string & { _brand: "excalidrawLinearElementId"; }; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; origin: Readonly<...> | null; segmentMidpoint: { ...; }; }>; ... 6 more ...; segm...' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ errorMessage: string; }' is not assignable to parameter of type 'CollabState | ((prevState: Readonly<CollabState>, props: Readonly<Props>) => CollabState | Pick<CollabState, keyof CollabState> | null) | Pick<...> | null'.
  • error TS2345: Argument of type '{ activeRoomLink: string; }' is not assignable to parameter of type 'CollabState | ((prevState: Readonly<CollabState>, props: Readonly<Props>) => CollabState | Pick<CollabState, keyof CollabState> | null) | Pick<...> | null'.
  • error TS2345: Argument of type '{ errorMessage: any; }' is not assignable to parameter of type 'CollabState | ((prevState: Readonly<CollabState>, props: Readonly<Props>) => CollabState | Pick<CollabState, keyof CollabState> | null) | Pick<...> | null'.
  • error TS2345: Argument of type '{ username: string; }' is not assignable to parameter of type 'CollabState | ((prevState: Readonly<CollabState>, props: Readonly<Props>) => CollabState | Pick<CollabState, keyof CollabState> | null) | Pick<...> | null'.
  • error TS2740: Type '{ errorMessage: any; }' is missing the following properties from type 'Pick<AppState, keyof AppState>': contextMenu, showWelcomeScreen, isLoading, draggingElement, and 65 more.
  • error TS2740: Type '{ isLoading: true; }' is missing the following properties from type 'Pick<AppState, keyof AppState>': contextMenu, showWelcomeScreen, errorMessage, draggingElement, and 65 more.
  • error TS2345: Argument of type '{ commitToHistory: true; elements: ExcalidrawElement[]; appState: Omit<AppState, "width" | "height" | "offsetTop" | "offsetLeft">; files: BinaryFiles; ... 4 more ...; libraryItems?: LibraryItems_anyVersion | ... 1 more ... | undefined; }' is not assignable to parameter of type '{ elements?: readonly ExcalidrawElement[] | null | undefined; appState?: Pick<AppState, keyof AppState> | null | undefined; collaborators?: Map<...> | undefined; commitToHistory?: boolean | undefined; }'.
  • error TS2345: Argument of type '{ elements: ExcalidrawElement[]; appState: { zenModeEnabled: boolean; theme: string; name: string; activeTool: { lastActiveTool: LastActiveTool; locked: boolean; } & ({ ...; } | { ...; }); ... 61 more ...; showHyperlinkPopup: false | ... 1 more ... | "editor"; } | null; }' is not assignable to parameter of type '{ elements?: readonly ExcalidrawElement[] | null | undefined; appState?: Pick<AppState, keyof AppState> | null | undefined; collaborators?: Map<...> | undefined; commitToHistory?: boolean | undefined; }'.
  • error TS2740: Type '{ errorMessage: string; }' is missing the following properties from type 'Pick<AppState, keyof AppState>': contextMenu, showWelcomeScreen, isLoading, draggingElement, and 65 more.
  • error TS2345: Argument of type '{ elements: ExcalidrawElement[]; appState: { viewBackgroundColor: string; }; }' is not assignable to parameter of type '{ elements?: readonly ExcalidrawElement[] | null | undefined; appState?: Pick<AppState, keyof AppState> | null | undefined; collaborators?: Map<...> | undefined; commitToHistory?: boolean | undefined; }'.
  • error TS2345: Argument of type '{ zoom: { value: NormalizedZoomValue; }; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ selectedElementIds: { [x: string]: true; }; }' is not assignable to parameter of type 'AppState | ((prevState: Readonly<AppState>, props: Readonly<AppProps>) => AppState | Pick<AppState, keyof AppState> | null) | Pick<...> | null'.
  • error TS2345: Argument of type '{ selectedElementIds: Record<string, true>; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ height: number; width: number; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.
  • error TS2345: Argument of type '{ viewModeEnabled: true; }' is not assignable to parameter of type 'AppState | Pick<AppState, keyof AppState> | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | ... 1 more ... | null) | null'.

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh Here are some more interesting changes from running the top-repos suite

Details

lyswhut/lx-music-desktop

1 of 6 projects failed to build with the old tsc and were ignored

src/main/tsconfig.json

microsoft/vscode

5 of 53 projects failed to build with the old tsc and were ignored

extensions/ipynb/tsconfig.json

react-bootstrap/react-bootstrap

1 of 2 projects failed to build with the old tsc and were ignored

tsconfig.json

  • error TS2322: Type 'null' is not assignable to type 'EventKey | undefined'.
  • error TS2345: Argument of type 'boolean | undefined' is not assignable to parameter of type 'SetStateAction<boolean>'.
  • error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
  • error TS2322: Type '{ children: Element[]; as: BsPrefixRefForwardingComponent<"div", ButtonGroupProps>; drop?: DropDirection | undefined; ... 260 more ...; ref: ForwardedRef<...>; }' is not assignable to type 'Pick<Pick<any, string | number | symbol> & BsPrefixProps<ElementType<any>> & ButtonGroupProps & { children?: ReactNode; }, string | number>'.

vadimdemedes/ink

1 of 2 projects failed to build with the old tsc and were ignored

tsconfig.json

  • error TS2345: Argument of type '{ activeFocusId: undefined; }' is not assignable to parameter of type 'State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, keyof State> | null) | Pick<...> | null'.
  • error TS2345: Argument of type '{ isFocusEnabled: true; }' is not assignable to parameter of type 'State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, keyof State> | null) | Pick<...> | null'.
  • error TS2345: Argument of type '{ isFocusEnabled: false; }' is not assignable to parameter of type 'State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, keyof State> | null) | Pick<...> | null'.
  • error TS2345: Argument of type '(previousState: Readonly<State>) => Readonly<State> | { activeFocusId: string; }' is not assignable to parameter of type 'State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, keyof State> | null) | Pick<...> | null'.
  • error TS2345: Argument of type '(previousState: Readonly<State>) => { activeFocusId: string | undefined; }' is not assignable to parameter of type 'State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, keyof State> | null) | Pick<...> | null'.
  • error TS2345: Argument of type '(previousState: Readonly<State>) => { activeFocusId: string | undefined; focusables: Focusable[]; }' is not assignable to parameter of type 'State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, keyof State> | null) | Pick<...> | null'.
  • error TS2345: Argument of type '(previousState: Readonly<State>) => { focusables: Focusable[]; }' is not assignable to parameter of type 'State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, keyof State> | null) | Pick<...> | null'.

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh Here are the results of running the top-repos suite comparing main and refs/pull/53188/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh
The results of the perf run you requested are in!

Here they are:

Compiler

Comparison Report - main..53188
Metric main 53188 Delta Best Worst p-value
Angular - node (v18.10.0, x64)
Memory used 363,470k (± 0.01%) 363,475k (± 0.01%) ~ 363,448k 363,504k p=1.000 n=6
Parse Time 3.39s (± 0.83%) 3.39s (± 0.51%) ~ 3.36s 3.41s p=0.871 n=6
Bind Time 1.12s (± 1.13%) 1.13s (± 0.49%) ~ 1.12s 1.13s p=0.663 n=6
Check Time 8.67s (± 0.58%) 8.68s (± 0.52%) ~ 8.64s 8.74s p=1.000 n=6
Emit Time 7.41s (± 0.43%) 7.45s (± 1.01%) ~ 7.38s 7.56s p=0.871 n=6
Total Time 20.60s (± 0.37%) 20.64s (± 0.55%) ~ 20.54s 20.81s p=0.575 n=6
Compiler-Unions - node (v18.10.0, x64)
Memory used 192,830k (± 1.53%) 192,967k (± 1.56%) ~ 190,980k 196,899k p=0.128 n=6
Parse Time 1.50s (± 0.37%) 1.51s (± 0.50%) +0.01s (+ 0.89%) 1.50s 1.52s p=0.015 n=6
Bind Time 0.77s (± 0.53%) 0.77s (± 0.67%) ~ 0.77s 0.78s p=0.595 n=6
Check Time 9.41s (± 0.94%) 9.27s (± 0.35%) -0.14s (- 1.49%) 9.25s 9.33s p=0.012 n=6
Emit Time 2.73s (± 1.05%) 2.74s (± 0.82%) ~ 2.72s 2.77s p=1.000 n=6
Total Time 14.41s (± 0.69%) 14.29s (± 0.19%) -0.12s (- 0.84%) 14.26s 14.33s p=0.030 n=6
Monaco - node (v18.10.0, x64)
Memory used 347,417k (± 0.01%) 347,412k (± 0.01%) ~ 347,376k 347,459k p=0.810 n=6
Parse Time 2.58s (± 0.80%) 2.60s (± 0.82%) ~ 2.57s 2.63s p=0.102 n=6
Bind Time 1.01s (± 0.81%) 1.01s (± 0.51%) ~ 1.00s 1.01s p=0.929 n=6
Check Time 7.04s (± 0.41%) 7.06s (± 0.55%) ~ 7.02s 7.12s p=0.627 n=6
Emit Time 4.21s (± 0.42%) 4.27s (± 1.55%) ~ 4.18s 4.36s p=0.090 n=6
Total Time 14.84s (± 0.37%) 14.93s (± 0.59%) +0.10s (+ 0.65%) 14.86s 15.05s p=0.030 n=6
TFS - node (v18.10.0, x64)
Memory used 300,792k (± 0.01%) 300,803k (± 0.01%) ~ 300,768k 300,831k p=0.521 n=6
Parse Time 2.06s (± 1.14%) 2.07s (± 1.24%) ~ 2.04s 2.10s p=0.465 n=6
Bind Time 1.14s (± 0.91%) 1.14s (± 0.36%) ~ 1.14s 1.15s p=0.390 n=6
Check Time 6.53s (± 0.26%) 6.53s (± 0.82%) ~ 6.48s 6.62s p=0.627 n=6
Emit Time 3.86s (± 0.70%) 3.86s (± 0.88%) ~ 3.82s 3.91s p=1.000 n=6
Total Time 13.58s (± 0.41%) 13.61s (± 0.64%) ~ 13.50s 13.72s p=0.629 n=6
material-ui - node (v18.10.0, x64)
Memory used 478,370k (± 0.01%) 548,605k (± 0.01%) +70,235k (+14.68%) 548,497k 548,667k p=0.005 n=6
Parse Time 3.02s (± 2.22%) 3.05s (± 2.54%) ~ 2.94s 3.11s p=0.124 n=6
Bind Time 0.95s (± 6.37%) 0.96s (± 7.51%) ~ 0.90s 1.07s p=0.935 n=6
Check Time 17.13s (± 0.30%) 22.45s (± 0.44%) 🔻+5.32s (+31.04%) 22.28s 22.58s p=0.005 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 21.10s (± 0.26%) 26.46s (± 0.34%) +5.36s (+25.39%) 26.31s 26.57s p=0.005 n=6
xstate - node (v18.10.0, x64)
Memory used 553,160k (± 0.03%) 557,055k (± 0.02%) +3,896k (+ 0.70%) 556,918k 557,179k p=0.005 n=6
Parse Time 3.76s (± 0.73%) 3.79s (± 1.05%) ~ 3.74s 3.85s p=0.224 n=6
Bind Time 1.68s (± 0.70%) 1.68s (± 0.61%) ~ 1.67s 1.70s p=0.615 n=6
Check Time 2.76s (± 0.65%) 2.88s (± 0.72%) +0.12s (+ 4.53%) 2.86s 2.91s p=0.005 n=6
Emit Time 0.08s (± 0.00%) 0.08s (± 0.00%) ~ 0.08s 0.08s p=1.000 n=6
Total Time 8.28s (± 0.59%) 8.44s (± 0.37%) +0.15s (+ 1.85%) 8.40s 8.48s p=0.005 n=6
Angular - node (v16.17.1, x64)
Memory used 362,834k (± 0.01%) 362,815k (± 0.01%) ~ 362,790k 362,843k p=0.378 n=6
Parse Time 3.50s (± 0.55%) 3.52s (± 0.39%) +0.03s (+ 0.71%) 3.51s 3.54s p=0.043 n=6
Bind Time 1.18s (± 0.54%) 1.18s (± 0.44%) ~ 1.18s 1.19s p=0.386 n=6
Check Time 9.41s (± 0.47%) 9.42s (± 0.17%) ~ 9.39s 9.43s p=0.871 n=6
Emit Time 7.86s (± 0.35%) 7.93s (± 0.67%) ~ 7.85s 7.98s p=0.063 n=6
Total Time 21.95s (± 0.34%) 22.05s (± 0.22%) +0.09s (+ 0.43%) 21.97s 22.09s p=0.029 n=6
Compiler-Unions - node (v16.17.1, x64)
Memory used 192,702k (± 0.02%) 195,022k (± 0.87%) +2,320k (+ 1.20%) 192,819k 196,225k p=0.005 n=6
Parse Time 1.57s (± 1.10%) 1.58s (± 1.35%) ~ 1.54s 1.60s p=0.371 n=6
Bind Time 0.82s (± 0.50%) 0.82s (± 0.50%) ~ 0.81s 0.82s p=1.000 n=6
Check Time 10.09s (± 0.66%) 9.97s (± 0.76%) -0.12s (- 1.17%) 9.92s 10.12s p=0.030 n=6
Emit Time 2.98s (± 0.86%) 3.02s (± 0.41%) +0.03s (+ 1.06%) 3.00s 3.03s p=0.022 n=6
Total Time 15.46s (± 0.54%) 15.38s (± 0.52%) ~ 15.33s 15.53s p=0.107 n=6
Monaco - node (v16.17.1, x64)
Memory used 346,715k (± 0.00%) 346,699k (± 0.00%) ~ 346,676k 346,712k p=0.054 n=6
Parse Time 2.72s (± 0.55%) 2.74s (± 0.45%) ~ 2.72s 2.75s p=0.154 n=6
Bind Time 1.09s (± 0.75%) 1.09s (± 0.37%) ~ 1.08s 1.09s p=1.000 n=6
Check Time 7.71s (± 0.25%) 7.76s (± 0.46%) +0.05s (+ 0.65%) 7.72s 7.80s p=0.023 n=6
Emit Time 4.45s (± 0.68%) 4.45s (± 0.63%) ~ 4.43s 4.50s p=0.685 n=6
Total Time 15.97s (± 0.28%) 16.04s (± 0.37%) +0.07s (+ 0.43%) 15.98s 16.12s p=0.029 n=6
TFS - node (v16.17.1, x64)
Memory used 300,148k (± 0.01%) 300,142k (± 0.01%) ~ 300,102k 300,192k p=0.936 n=6
Parse Time 2.18s (± 0.54%) 2.18s (± 0.45%) ~ 2.17s 2.19s p=1.000 n=6
Bind Time 1.24s (± 0.41%) 1.24s (± 1.35%) ~ 1.22s 1.26s p=1.000 n=6
Check Time 7.18s (± 0.31%) 7.17s (± 0.58%) ~ 7.14s 7.25s p=0.256 n=6
Emit Time 4.35s (± 0.92%) 4.34s (± 0.67%) ~ 4.31s 4.38s p=0.936 n=6
Total Time 14.95s (± 0.40%) 14.93s (± 0.35%) ~ 14.85s 15.00s p=0.573 n=6
material-ui - node (v16.17.1, x64)
Memory used 477,676k (± 0.02%) 547,954k (± 0.01%) +70,278k (+14.71%) 547,892k 548,051k p=0.005 n=6
Parse Time 3.21s (± 0.23%) 3.23s (± 0.67%) ~ 3.20s 3.25s p=0.404 n=6
Bind Time 0.95s (± 0.00%) 0.96s (± 0.57%) ~ 0.95s 0.96s p=0.071 n=6
Check Time 18.02s (± 0.53%) 23.45s (± 0.57%) 🔻+5.43s (+30.13%) 23.29s 23.62s p=0.005 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 22.18s (± 0.45%) 27.63s (± 0.47%) +5.45s (+24.56%) 27.45s 27.80s p=0.005 n=6
xstate - node (v16.17.1, x64)
Memory used 550,643k (± 0.01%) 554,601k (± 0.01%) +3,958k (+ 0.72%) 554,549k 554,720k p=0.005 n=6
Parse Time 3.94s (± 0.32%) 3.95s (± 0.31%) ~ 3.94s 3.97s p=0.086 n=6
Bind Time 1.78s (± 1.09%) 1.80s (± 0.84%) ~ 1.78s 1.82s p=0.210 n=6
Check Time 2.99s (± 0.34%) 3.14s (± 0.89%) +0.15s (+ 4.96%) 3.09s 3.17s p=0.005 n=6
Emit Time 0.09s (± 0.00%) 0.09s (± 0.00%) ~ 0.09s 0.09s p=1.000 n=6
Total Time 8.80s (± 0.25%) 8.99s (± 0.52%) +0.19s (+ 2.12%) 8.92s 9.05s p=0.005 n=6
Angular - node (v14.15.1, x64)
Memory used 356,652k (± 0.01%) 356,666k (± 0.00%) ~ 356,651k 356,675k p=0.173 n=6
Parse Time 3.58s (± 0.78%) 3.60s (± 0.44%) ~ 3.58s 3.62s p=0.192 n=6
Bind Time 1.23s (± 0.42%) 1.24s (± 0.44%) ~ 1.23s 1.24s p=0.640 n=6
Check Time 9.73s (± 0.51%) 9.76s (± 0.46%) ~ 9.69s 9.82s p=0.470 n=6
Emit Time 8.34s (± 0.65%) 8.38s (± 0.36%) ~ 8.34s 8.41s p=0.199 n=6
Total Time 22.89s (± 0.38%) 22.97s (± 0.35%) ~ 22.86s 23.07s p=0.149 n=6
Compiler-Unions - node (v14.15.1, x64)
Memory used 187,927k (± 0.01%) 188,561k (± 0.71%) +634k (+ 0.34%) 187,986k 191,289k p=0.005 n=6
Parse Time 1.59s (± 0.73%) 1.61s (± 0.64%) ~ 1.59s 1.62s p=0.058 n=6
Bind Time 0.84s (± 0.65%) 0.84s (± 0.61%) ~ 0.84s 0.85s p=0.640 n=6
Check Time 10.23s (± 0.76%) 10.11s (± 0.33%) -0.12s (- 1.14%) 10.06s 10.15s p=0.025 n=6
Emit Time 3.11s (± 0.85%) 3.15s (± 1.68%) ~ 3.08s 3.23s p=0.148 n=6
Total Time 15.78s (± 0.56%) 15.71s (± 0.15%) ~ 15.69s 15.75s p=0.126 n=6
Monaco - node (v14.15.1, x64)
Memory used 341,705k (± 0.01%) 341,690k (± 0.00%) ~ 341,676k 341,703k p=0.128 n=6
Parse Time 2.84s (± 0.61%) 2.84s (± 0.47%) ~ 2.82s 2.85s p=0.677 n=6
Bind Time 1.10s (± 0.47%) 1.10s (± 0.37%) ~ 1.10s 1.11s p=0.114 n=6
Check Time 8.14s (± 0.45%) 8.14s (± 0.69%) ~ 8.05s 8.21s p=0.627 n=6
Emit Time 4.68s (± 0.44%) 4.70s (± 0.72%) ~ 4.65s 4.73s p=0.375 n=6
Total Time 16.75s (± 0.18%) 16.78s (± 0.29%) ~ 16.72s 16.85s p=0.518 n=6
TFS - node (v14.15.1, x64)
Memory used 295,228k (± 0.00%) 295,227k (± 0.01%) ~ 295,192k 295,245k p=0.810 n=6
Parse Time 2.39s (± 0.82%) 2.40s (± 0.63%) ~ 2.38s 2.41s p=0.740 n=6
Bind Time 1.06s (± 0.00%) 1.08s (± 1.60%) +0.02s (+ 1.73%) 1.06s 1.11s p=0.009 n=6
Check Time 7.48s (± 0.18%) 7.49s (± 0.66%) ~ 7.40s 7.54s p=0.517 n=6
Emit Time 4.27s (± 1.06%) 4.31s (± 0.76%) ~ 4.28s 4.36s p=0.053 n=6
Total Time 15.21s (± 0.22%) 15.27s (± 0.25%) +0.06s (+ 0.39%) 15.23s 15.33s p=0.024 n=6
material-ui - node (v14.15.1, x64)
Memory used 473,298k (± 0.00%) 543,226k (± 0.00%) +69,928k (+14.77%) 543,207k 543,250k p=0.005 n=6
Parse Time 3.34s (± 0.64%) 3.33s (± 0.33%) ~ 3.31s 3.34s p=0.863 n=6
Bind Time 1.00s (± 0.75%) 1.01s (± 0.51%) ~ 1.00s 1.01s p=0.247 n=6
Check Time 18.97s (± 0.43%) 24.50s (± 0.52%) +5.54s (+29.19%) 24.35s 24.66s p=0.005 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 23.31s (± 0.46%) 28.84s (± 0.45%) +5.54s (+23.76%) 28.68s 29.01s p=0.005 n=6
xstate - node (v14.15.1, x64)
Memory used 539,288k (± 0.00%) 543,134k (± 0.01%) +3,846k (+ 0.71%) 543,088k 543,202k p=0.005 n=6
Parse Time 4.22s (± 1.38%) 4.17s (± 2.18%) ~ 4.08s 4.28s p=0.686 n=6
Bind Time 1.70s (± 3.05%) 1.74s (± 4.01%) ~ 1.67s 1.82s p=0.137 n=6
Check Time 3.16s (± 1.01%) 3.25s (± 0.67%) +0.10s (+ 3.06%) 3.23s 3.29s p=0.005 n=6
Emit Time 0.09s (± 0.00%) 0.09s (± 0.00%) ~ 0.09s 0.09s p=1.000 n=6
Total Time 9.16s (± 0.32%) 9.26s (± 0.51%) +0.10s (+ 1.11%) 9.21s 9.33s p=0.005 n=6
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v18.10.0, x64)
  • node (v16.17.1, x64)
  • node (v14.15.1, x64)
Scenarios
  • Angular - node (v18.10.0, x64)
  • Angular - node (v16.17.1, x64)
  • Angular - node (v14.15.1, x64)
  • Compiler-Unions - node (v18.10.0, x64)
  • Compiler-Unions - node (v16.17.1, x64)
  • Compiler-Unions - node (v14.15.1, x64)
  • Monaco - node (v18.10.0, x64)
  • Monaco - node (v16.17.1, x64)
  • Monaco - node (v14.15.1, x64)
  • TFS - node (v18.10.0, x64)
  • TFS - node (v16.17.1, x64)
  • TFS - node (v14.15.1, x64)
  • material-ui - node (v18.10.0, x64)
  • material-ui - node (v16.17.1, x64)
  • material-ui - node (v14.15.1, x64)
  • xstate - node (v18.10.0, x64)
  • xstate - node (v16.17.1, x64)
  • xstate - node (v14.15.1, x64)
Benchmark Name Iterations
Current 53188 6
Baseline main 6

TSServer

Comparison Report - main..53188
Metric main 53188 Delta Best Worst p-value
Compiler-UnionsTSServer - node (v18.10.0, x64)
Req 1 - updateOpen 2,390ms (± 0.93%) 2,401ms (± 1.24%) ~ 2,376ms 2,457ms p=0.688 n=6
Req 2 - geterr 5,372ms (± 0.70%) 5,370ms (± 0.59%) ~ 5,314ms 5,406ms p=0.936 n=6
Req 3 - references 339ms (± 1.34%) 337ms (± 0.58%) ~ 334ms 339ms p=0.625 n=6
Req 4 - navto 280ms (± 0.20%) 280ms (± 0.27%) ~ 279ms 281ms p=0.476 n=6
Req 5 - completionInfo count 1,356 (± 0.00%) 1,356 (± 0.00%) ~ 1,356 1,356 p=1.000 n=6
Req 5 - completionInfo 81ms (± 3.98%) 81ms (± 3.70%) ~ 77ms 84ms p=0.806 n=6
CompilerTSServer - node (v18.10.0, x64)
Req 1 - updateOpen 2,526ms (± 0.93%) 2,516ms (± 1.33%) ~ 2,477ms 2,557ms p=0.575 n=6
Req 2 - geterr 4,000ms (± 0.78%) 4,013ms (± 0.74%) ~ 3,977ms 4,065ms p=0.298 n=6
Req 3 - references 351ms (± 0.67%) 351ms (± 0.89%) ~ 347ms 355ms p=0.683 n=6
Req 4 - navto 292ms (± 0.79%) 291ms (± 0.87%) ~ 288ms 294ms p=0.629 n=6
Req 5 - completionInfo count 1,518 (± 0.00%) 1,518 (± 0.00%) ~ 1,518 1,518 p=1.000 n=6
Req 5 - completionInfo 83ms (± 3.52%) 80ms (± 7.21%) ~ 70ms 85ms p=0.225 n=6
xstateTSServer - node (v18.10.0, x64)
Req 1 - updateOpen 3,051ms (± 0.43%) 3,055ms (± 0.40%) ~ 3,041ms 3,076ms p=0.689 n=6
Req 2 - geterr 1,596ms (± 0.95%) 1,781ms (± 0.69%) +185ms (+11.62%) 1,761ms 1,794ms p=0.005 n=6
Req 3 - references 109ms (± 0.50%) 110ms (± 0.99%) +2ms (+ 1.38%) 109ms 112ms p=0.015 n=6
Req 4 - navto 360ms (± 0.52%) 356ms (± 0.64%) -4ms (- 1.02%) 354ms 360ms p=0.019 n=6
Req 5 - completionInfo count 3,177 (± 0.00%) 3,177 (± 0.00%) ~ 3,177 3,177 p=1.000 n=6
Req 5 - completionInfo 426ms (± 1.43%) 426ms (± 0.33%) ~ 424ms 428ms p=0.872 n=6
Compiler-UnionsTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,518ms (± 0.49%) 2,507ms (± 0.55%) ~ 2,486ms 2,528ms p=0.229 n=6
Req 2 - geterr 5,740ms (± 0.53%) 5,761ms (± 0.43%) ~ 5,736ms 5,801ms p=0.298 n=6
Req 3 - references 346ms (± 0.50%) 346ms (± 0.94%) ~ 341ms 351ms p=0.569 n=6
Req 4 - navto 278ms (± 0.49%) 279ms (± 1.00%) ~ 275ms 283ms p=0.459 n=6
Req 5 - completionInfo count 1,356 (± 0.00%) 1,356 (± 0.00%) ~ 1,356 1,356 p=1.000 n=6
Req 5 - completionInfo 74ms (± 1.48%) 73ms (± 1.41%) ~ 72ms 74ms p=0.530 n=6
CompilerTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,677ms (± 0.31%) 2,690ms (± 0.56%) ~ 2,670ms 2,707ms p=0.173 n=6
Req 2 - geterr 4,348ms (± 0.59%) 4,365ms (± 0.36%) ~ 4,336ms 4,379ms p=0.199 n=6
Req 3 - references 362ms (± 1.20%) 361ms (± 1.32%) ~ 354ms 368ms p=0.872 n=6
Req 4 - navto 290ms (± 0.36%) 290ms (± 0.68%) ~ 289ms 294ms p=0.868 n=6
Req 5 - completionInfo count 1,518 (± 0.00%) 1,518 (± 0.00%) ~ 1,518 1,518 p=1.000 n=6
Req 5 - completionInfo 77ms (± 3.06%) 76ms (± 8.18%) ~ 68ms 86ms p=0.870 n=6
xstateTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 3,198ms (± 0.33%) 3,215ms (± 0.28%) +17ms (+ 0.52%) 3,204ms 3,226ms p=0.016 n=6
Req 2 - geterr 1,750ms (± 0.49%) 1,943ms (± 1.24%) +193ms (+11.00%) 1,920ms 1,979ms p=0.005 n=6
Req 3 - references 119ms (± 0.92%) 117ms (± 1.59%) ~ 115ms 119ms p=0.164 n=6
Req 4 - navto 344ms (± 0.37%) 342ms (± 0.45%) -2ms (- 0.58%) 340ms 344ms p=0.037 n=6
Req 5 - completionInfo count 3,177 (± 0.00%) 3,177 (± 0.00%) ~ 3,177 3,177 p=1.000 n=6
Req 5 - completionInfo 439ms (± 4.31%) 431ms (± 1.14%) ~ 423ms 436ms p=0.872 n=6
Compiler-UnionsTSServer - node (v14.15.1, x64)
Req 1 - updateOpen 2,608ms (± 0.74%) 2,607ms (± 0.40%) ~ 2,593ms 2,616ms p=0.936 n=6
Req 2 - geterr 6,144ms (± 0.61%) 6,177ms (± 0.18%) ~ 6,166ms 6,193ms p=0.148 n=6
Req 3 - references 364ms (± 1.27%) 365ms (± 1.55%) ~ 358ms 373ms p=0.936 n=6
Req 4 - navto 280ms (± 1.57%) 290ms (± 0.83%) +10ms (+ 3.51%) 288ms 294ms p=0.005 n=6
Req 5 - completionInfo count 1,356 (± 0.00%) 1,356 (± 0.00%) ~ 1,356 1,356 p=1.000 n=6
Req 5 - completionInfo 99ms (± 4.45%) 94ms (± 4.87%) ~ 90ms 101ms p=0.117 n=6
CompilerTSServer - node (v14.15.1, x64)
Req 1 - updateOpen 2,824ms (± 0.48%) 2,835ms (± 0.54%) ~ 2,822ms 2,861ms p=0.228 n=6
Req 2 - geterr 4,452ms (± 0.44%) 4,546ms (± 2.69%) +94ms (+ 2.12%) 4,456ms 4,712ms p=0.045 n=6
Req 3 - references 428ms (± 0.93%) 409ms (± 7.02%) ~ 371ms 430ms p=0.335 n=6
Req 4 - navto 288ms (± 0.68%) 295ms (± 1.31%) +8ms (+ 2.67%) 292ms 303ms p=0.005 n=6
Req 5 - completionInfo count 1,518 (± 0.00%) 1,518 (± 0.00%) ~ 1,518 1,518 p=1.000 n=6
Req 5 - completionInfo 96ms (± 2.51%) 91ms (± 8.26%) ~ 81ms 96ms p=0.209 n=6
xstateTSServer - node (v14.15.1, x64)
Req 1 - updateOpen 3,499ms (± 0.30%) 3,504ms (± 0.48%) ~ 3,477ms 3,518ms p=0.810 n=6
Req 2 - geterr 1,846ms (± 0.82%) 2,051ms (± 0.82%) +205ms (+11.12%) 2,027ms 2,069ms p=0.005 n=6
Req 3 - references 125ms (± 1.57%) 129ms (± 1.60%) +4ms (+ 3.19%) 127ms 133ms p=0.019 n=6
Req 4 - navto 368ms (± 0.61%) 391ms (± 1.10%) +23ms (+ 6.34%) 385ms 397ms p=0.005 n=6
Req 5 - completionInfo count 3,177 (± 0.00%) 3,177 (± 0.00%) ~ 3,177 3,177 p=1.000 n=6
Req 5 - completionInfo 447ms (± 1.30%) 467ms (± 1.48%) +20ms (+ 4.40%) 456ms 475ms p=0.008 n=6
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v18.10.0, x64)
  • node (v16.17.1, x64)
  • node (v14.15.1, x64)
Scenarios
  • Compiler-UnionsTSServer - node (v18.10.0, x64)
  • Compiler-UnionsTSServer - node (v16.17.1, x64)
  • Compiler-UnionsTSServer - node (v14.15.1, x64)
  • CompilerTSServer - node (v18.10.0, x64)
  • CompilerTSServer - node (v16.17.1, x64)
  • CompilerTSServer - node (v14.15.1, x64)
  • xstateTSServer - node (v18.10.0, x64)
  • xstateTSServer - node (v16.17.1, x64)
  • xstateTSServer - node (v14.15.1, x64)
Benchmark Name Iterations
Current 53188 6
Baseline main 6

Startup

Comparison Report - main..53188
Metric main 53188 Delta Best Worst p-value
tsc-startup - node (v16.17.1, x64)
Execution time 141.11ms (± 0.20%) 142.12ms (± 0.19%) +1.01ms (+ 0.71%) 141.32ms 145.63ms p=0.000 n=600
tsserver-startup - node (v16.17.1, x64)
Execution time 225.72ms (± 0.13%) 227.32ms (± 0.21%) +1.60ms (+ 0.71%) 225.94ms 231.32ms p=0.000 n=600
tsserverlibrary-startup - node (v16.17.1, x64)
Execution time 227.77ms (± 0.13%) 229.51ms (± 0.28%) +1.74ms (+ 0.76%) 227.83ms 236.01ms p=0.000 n=600
typescript-startup - node (v16.17.1, x64)
Execution time 208.66ms (± 0.16%) 210.45ms (± 0.27%) +1.79ms (+ 0.86%) 208.76ms 214.35ms p=0.000 n=600
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v16.17.1, x64)
Scenarios
  • tsc-startup - node (v16.17.1, x64)
  • tsserver-startup - node (v16.17.1, x64)
  • tsserverlibrary-startup - node (v16.17.1, x64)
  • typescript-startup - node (v16.17.1, x64)
Benchmark Name Iterations
Current 53188 6
Baseline main 6

Developer Information:

Download Benchmark

@@ -1582,7 +1582,7 @@ type Extract<T, U> = T extends U ? T : never;
/**
* Construct a type with the properties of T except for those in type K.
*/
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
type Omit<T, K extends keyof any> = { [P in keyof T as Exclude<P, K>]: T[P]; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably also be multi‑line:

Suggested change
type Omit<T, K extends keyof any> = { [P in keyof T as Exclude<P, K>]: T[P]; }
type Omit<T, K extends keyof any> = {
[P in keyof T as Exclude<P, K>]: T[P];
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants