From a32cdbb4d167a84b418fe9473bfa2a6521d1e3e4 Mon Sep 17 00:00:00 2001 From: Andy Richardson Date: Wed, 14 Aug 2019 20:55:21 +0100 Subject: [PATCH] Change export to default (#37558) --- types/reach__alert/index.d.ts | 6 ++++-- types/reach__alert/reach__alert-tests.tsx | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/types/reach__alert/index.d.ts b/types/reach__alert/index.d.ts index 1d77c752f9..9c75f4e0ff 100644 --- a/types/reach__alert/index.d.ts +++ b/types/reach__alert/index.d.ts @@ -7,7 +7,9 @@ import * as React from 'react'; export type AlertProps = { - type?: "assertive" | "polite"; + type?: 'assertive' | 'polite'; } & React.HTMLProps; -export const Alert: React.FC; +declare const Alert: React.FC; + +export default Alert; diff --git a/types/reach__alert/reach__alert-tests.tsx b/types/reach__alert/reach__alert-tests.tsx index 4b25a99808..4cdd1143bd 100644 --- a/types/reach__alert/reach__alert-tests.tsx +++ b/types/reach__alert/reach__alert-tests.tsx @@ -1,4 +1,4 @@ -import { Alert } from '@reach/alert'; +import Alert from '@reach/alert'; import * as React from "react"; import { render } from "react-dom";