Fix simple lint errors

This commit is contained in:
J. Ryan Stinnett 2021-04-01 14:15:21 +01:00
parent 9c3bd12830
commit 0e92251f70
8 changed files with 35 additions and 27 deletions

View file

@ -17,6 +17,7 @@ limitations under the License.
import { JSXElementConstructor } from "react";
// Based on https://stackoverflow.com/a/53229857/3532235
// eslint-disable-next-line @typescript-eslint/type-annotation-spacing
export type Without<T, U> = {[P in Exclude<keyof T, keyof U>] ? : never};
export type XOR<T, U> = (T | U) extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
export type Writeable<T> = { -readonly [P in keyof T]: T[P] };