Skip to content

Commit 6931b65

Browse files
kotarella1110quantizor
authored andcommitted
fixed type definition about export the stylesheet serializer (#259)
1 parent 0fef1e2 commit 6931b65

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@babel/preset-env": "^7.0.0",
2929
"@babel/preset-react": "^7.0.0",
3030
"@testing-library/react": "^8.0.1",
31+
"@types/pretty-format": "^20.0.1",
3132
"babel-core": "^7.0.0-bridge.0",
3233
"babel-eslint": "^10.0.1",
3334
"babel-jest": "^24.8.0",

typings/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Plugin, NewPlugin } from 'pretty-format'
2+
13
declare namespace jest {
24
interface AsymmetricMatcher {
35
$$typeof: Symbol;
@@ -16,3 +18,5 @@ declare namespace jest {
1618
toHaveStyleRule(property: string, value?: Value, options?: Options): R;
1719
}
1820
}
21+
22+
export declare const styleSheetSerializer: Exclude<Plugin, NewPlugin>;

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,11 @@
11331133
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
11341134
integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==
11351135

1136+
"@types/pretty-format@^20.0.1":
1137+
version "20.0.1"
1138+
resolved "https://registry.yarnpkg.com/@types/pretty-format/-/pretty-format-20.0.1.tgz#7ce03b403887b087701a2b4534464f48ce7b2f48"
1139+
integrity sha512-Oh7wnvVUCtVIWnCHQWe9qDZKn0fGyk5AMq99jXml0x39K59P+z9qe31CNRtop9TceCpS7NmoK+J9eGeCnyFgnw==
1140+
11361141
"@types/stack-utils@^1.0.1":
11371142
version "1.0.1"
11381143
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"

0 commit comments

Comments
 (0)