Skip to content

Commit 7475da2

Browse files
committed
💩 (@coven/pair) introducing ugly hack of types until deno doc --lint
is fixed to support types properly.
1 parent 71f595b commit 7475da2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎@coven/pair/preact/PairedRenderFunction.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import type { Unary } from "@coven/types";
2-
import type { Attributes, VNode } from "preact";
2+
// FIXME: Uncomment once this is fixed: https://github.com/denoland/deno/issues/27364
3+
// import type { Attributes, VNode } from "preact";
4+
5+
/** @internal */
6+
type Attributes = import("preact").Attributes;
7+
8+
/** @internal */
9+
type VNode<P = object> = import("preact").VNode<P>;
310

411
/**
512
* Function that receives the paired hook and must return a `VNode`.

0 commit comments

Comments
 (0)