mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-18 07:51:48 +08:00
theming: add test that would fail at runtime
This commit is contained in:
@@ -2,11 +2,16 @@ import * as React from "react";
|
||||
import {
|
||||
channel,
|
||||
ContextWithTheme,
|
||||
Theme,
|
||||
themeListener,
|
||||
ThemeProvider,
|
||||
withTheme
|
||||
} from "theming";
|
||||
|
||||
// Typings currently accept non-plain-objects while they get rejected at runtime.
|
||||
// There exists currently no typing for plain objects.
|
||||
const runtimeErrorTheme: Theme = [];
|
||||
|
||||
const customTheme = {
|
||||
color: {
|
||||
primary: "red",
|
||||
|
||||
Reference in New Issue
Block a user