diff --git a/.eslintignore b/.eslintignore index e2fe9113c0..e9e9b97019 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ test/fixtures test/ts/ +*.ts diff --git a/compat/src/internal.d.ts b/compat/src/internal.d.ts index 8c6e06f39b..4f3a99a994 100644 --- a/compat/src/internal.d.ts +++ b/compat/src/internal.d.ts @@ -1,11 +1,11 @@ -import { Ref } from '../../src/index'; +import { Ref } from '../..'; import { Component as PreactComponent, VNode as PreactVNode, FunctionalComponent as PreactFunctionalComponent } from '../../src/internal'; -export { ComponentChildren } from '../../src/index'; +export { ComponentChildren } from '../..'; export { PreactElement } from '../../src/internal'; diff --git a/hooks/src/index.d.ts b/hooks/src/index.d.ts index 45fe5dbe9e..d0ec56125e 100644 --- a/hooks/src/index.d.ts +++ b/hooks/src/index.d.ts @@ -1,4 +1,4 @@ -import { PreactContext } from "preact"; +import { PreactContext } from "../.."; type Inputs = ReadonlyArray; @@ -74,7 +74,7 @@ type CreateHandle = () => object; * ref.current * @param inputs If present, effect will only activate if the values in the list change (using ===). */ -export function useImperativeHandle(ref: Ref, create: CreateHandle, inputs?: Inputs): void; +export function useImperativeHandle(ref: Ref, create: CreateHandle, inputs?: Inputs): void; /** * Accepts a function that contains imperative, possibly effectful code.