Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit c3eef68

Browse files
committed
PropType for login tokens
1 parent 2c9ffe3 commit c3eef68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/prop-types.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import PropTypes from 'prop-types';
22

3+
export const TokenPropType = PropTypes.oneOfType([PropTypes.string, PropTypes.symbol, PropTypes.instanceOf(Error)]);
4+
35
export const DOMNodePropType = (props, propName, componentName) => {
46
if (props[propName] instanceof HTMLElement) {
57
return null;

0 commit comments

Comments
 (0)