Skip to content
Permalink
Browse files

fix(anchor): set children as non-nullable, remove child null error (#91)

* fix(anchor): set children as non-nullable, remove child null error

* fix(anchor): add back children null error
  • Loading branch information...
richbachman committed Sep 13, 2019
1 parent fe0f946 commit 1c6d6c572bf1bcfd7514a9d3c5806552315e6a4b
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/paste-core/components/anchor/src/types.ts
@@ -9,7 +9,7 @@ export interface AnchorProps {
target?: AnchorTargets;
rel?: string;

children: React.ReactNode;
children: NonNullable<React.ReactNode>;

onClick?(event: React.MouseEvent<HTMLElement>): void;
onFocus?(event: React.FocusEvent<HTMLElement>): void;

0 comments on commit 1c6d6c5

Please sign in to comment.
You can’t perform that action at this time.