Skip to content

Commit 6950d9d

Browse files
committed
Add StyleMedia to react defs
1 parent 43db4c1 commit 6950d9d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/lib/react.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2325,6 +2325,8 @@ declare namespace __React {
23252325
// https://github.com/nikeee/2048-typescript/blob/master/2048/js/touch.d.ts
23262326
// ----------------------------------------------------------------------
23272327

2328+
interface StyleMedia {}
2329+
23282330
interface AbstractView {
23292331
styleMedia: StyleMedia;
23302332
document: Document;

tests/lib/react16.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,6 +2316,8 @@ declare module "react" {
23162316
// https://github.com/nikeee/2048-typescript/blob/master/2048/js/touch.d.ts
23172317
// ----------------------------------------------------------------------
23182318

2319+
interface StyleMedia {}
2320+
23192321
interface AbstractView {
23202322
styleMedia: StyleMedia;
23212323
document: Document;

0 commit comments

Comments
 (0)