Skip to content

Commit

Permalink
chore: remove DOM from tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Oct 30, 2023
1 parent fa8c5ae commit 73f47a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/react-form/src/useIsomorphicLayoutEffect.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { useEffect, useLayoutEffect } from 'react'

export const useIsomorphicLayoutEffect = typeof document !== 'undefined' ? useLayoutEffect : useEffect
export const useIsomorphicLayoutEffect =
// @ts-ignore
typeof window !== 'undefined' ? useLayoutEffect : useEffect
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"lib": ["ES2022", "DOM"],
"lib": ["ES2022"],
"target": "ES2020",
"module": "ES2020",
"moduleResolution": "node",
Expand Down

0 comments on commit 73f47a7

Please sign in to comment.