@emotion/is-prop-valid
Advanced tools
Comparing version 0.8.6-next.0 to 0.9.0-next.1
# @emotion/is-prop-valid | ||
## 0.9.0-next.1 | ||
### Minor Changes | ||
- [`923ded01`](https://github.com/emotion-js/emotion/commit/923ded01e2399a242206d590f6646f13aba110e4) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@JakeGinnivan](https://github.com/JakeGinnivan)! - Allow `isPropValid` to take any `PropertyKey` as an argument (instead of just `string`). | ||
## 0.8.6-next.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@emotion/is-prop-valid", | ||
"version": "0.8.6-next.0", | ||
"version": "0.9.0-next.1", | ||
"description": "A function to check whether a prop is valid for HTML and SVG elements", | ||
@@ -5,0 +5,0 @@ "main": "dist/is-prop-valid.cjs.js", |
// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun> | ||
// TypeScript Version: 2.1 | ||
declare function isPropValid(string: string): boolean | ||
declare function isPropValid(string: PropertyKey): boolean | ||
export default isPropValid |
@@ -8,6 +8,4 @@ import isPropValid from '@emotion/is-prop-valid' | ||
// $ExpectError | ||
isPropValid(5) | ||
// $ExpectError | ||
isPropValid({}) | ||
// $ExpectError | ||
isPropValid('ref', 'def') |
37476
702