Upgrade invariant types

Summary: The new type defs make use of TypeScript 3.7 assertion functions which means they actually have a semantic effect on the rest of the lexical unit, which is quite neat.

Reviewed By: mweststrate

Differential Revision: D19348035

fbshipit-source-id: 3c7a21b5bece091c32f8879fed12d8e46e205ea4
This commit is contained in:
Pascal Hartig
2020-01-13 07:43:53 -08:00
committed by Facebook Github Bot
parent 5ea4c2211e
commit b2c3125a1a
4 changed files with 9 additions and 9 deletions

View File

@@ -147,8 +147,8 @@ class TableHeadColumn extends PureComponent<{
const {parentElement} = this.ref;
invariant(parentElement, 'expected there to be parentElement');
const parentWidth = parentElement!.clientWidth;
const {childNodes} = parentElement!;
const parentWidth = parentElement.clientWidth;
const {childNodes} = parentElement;
const lastElem = childNodes[childNodes.length - 1];
const right =