Skip to content

Commit

Permalink
Remove undefined from GetActiveElement type
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek committed Sep 11, 2023
1 parent 03f544e commit d61fe7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/DomUtils/index.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {BlurActiveElement, GetActiveElement} from './types';

const blurActiveElement: BlurActiveElement = () => {};

const getActiveElement: GetActiveElement = () => undefined;
const getActiveElement: GetActiveElement = () => null;

export default {
blurActiveElement,
Expand Down
2 changes: 1 addition & 1 deletion src/libs/DomUtils/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type BlurActiveElement = () => void;
type GetActiveElement = () => Element | null | undefined;
type GetActiveElement = () => Element | null;

export type {BlurActiveElement, GetActiveElement};

0 comments on commit d61fe7b

Please sign in to comment.