Introduce a concept of "non-urgent" toasts

This is somewhat expected to be temporary.
This commit is contained in:
Travis Ralston 2020-07-29 12:43:35 -06:00
parent 6a9fe35fa8
commit 14757cacd5
7 changed files with 159 additions and 3 deletions

View file

@ -14,7 +14,11 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { JSXElementConstructor } from "react";
// Based on https://stackoverflow.com/a/53229857/3532235
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] };
export type ComponentClass = keyof JSX.IntrinsicElements | JSXElementConstructor<any>;