Skip to content

Commit 5679f6e

Browse files
authored
Merge pull request #754 from hasparus/get-loose
loosen up the tsconfig rules for tests
2 parents 778d623 + 796a384 commit 5679f6e

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@
4949
"esModuleInterop": true,
5050
"resolveJsonModule": true,
5151
"jsx": "react",
52-
"strictFunctionTypes": true,
5352
"alwaysStrict": true,
54-
"noImplicitThis": true
53+
"noImplicitThis": true,
54+
"noImplicitAny": false,
55+
"strictBindCallApply": false
5556
}
5657
}
5758
},

packages/core/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ interface BaseProviderProps {
7676
const BaseProvider: React.FC<BaseProviderProps> = ({ context, children }) =>
7777
jsx(
7878
EmotionContext.Provider,
79-
{ value: context.theme },
79+
{ value: context.theme! },
8080
jsx(Context.Provider, {
8181
value: context,
8282
children,
@@ -103,7 +103,7 @@ export function ThemeProvider({ theme, children }: ThemeProviderProps) {
103103

104104
const context =
105105
typeof theme === 'function'
106-
? { ...outer, theme: theme(outer.theme) }
106+
? { ...outer, theme: theme(outer.theme!) }
107107
: merge.all<ContextValue>({}, outer, { theme })
108108

109109
return jsx(BaseProvider, { context }, children)

packages/core/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"jsx": "react",
5-
"strict": false
5+
"strict": false,
6+
"strictFunctionTypes": true
67
},
78
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
89
}

0 commit comments

Comments
 (0)