Move expect-error directive to correct spot
This commit is contained in:
parent
aafdc9b04c
commit
b1acf13e68
@ -3,10 +3,10 @@ import createCache from "@emotion/cache";
|
|||||||
export const defaultCache = createEmotionCache();
|
export const defaultCache = createEmotionCache();
|
||||||
|
|
||||||
export default function createEmotionCache() {
|
export default function createEmotionCache() {
|
||||||
// @ts-expect-error
|
|
||||||
// The browser throws when calling .default, but the server throws if we don't call .default
|
// The browser throws when calling .default, but the server throws if we don't call .default
|
||||||
// Of course!
|
// Of course!
|
||||||
return typeof document === "undefined"
|
return typeof document === "undefined"
|
||||||
? createCache.default({ key: "cha" })
|
? createCache.default({ key: "cha" })
|
||||||
: createCache({ key: "cha" });
|
: // @ts-expect-error
|
||||||
|
createCache({ key: "cha" });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user