Skip to content

Commit

Permalink
Remove MaybePromise<Child> from Component type
Browse files Browse the repository at this point in the history
  • Loading branch information
monodop committed Apr 26, 2020
1 parent c15e90e commit aa8b4e2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/__tests__/types.tsx
Expand Up @@ -8,13 +8,24 @@ describe("types", () => {
};
let elem: any;

test("Primitive Components", () => {
test("Not Components", () => {

// @ts-expect-error
const MyString: Component = 'Hello';

// @ts-expect-error
const MyNumber: Component = 10;

// @ts-expect-error
const MyBoolean: Component = true;

// @ts-expect-error
const MyNull: Component = null;

// @ts-expect-error
const MyUndefined: Component = undefined;

// @ts-expect-error
const MyElement: Component = <a></a>;

// @ts-expect-error
Expand Down

0 comments on commit aa8b4e2

Please sign in to comment.