File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ import type { Replace } from "../../public/Replace.js"
12import type { Node } from "../../public/Node.js"
23
3- import type { Replace } from "../../public/Replace.js"
44import type { InlineDescendant } from "./InlineDescendant.js"
55
66import { ELEMENT_BLOCKQUOTE } from "../constants.js"
Original file line number Diff line number Diff line change 1+ import test from "ava"
2+
3+ import { expectType } from "ts-expect"
4+
5+ import type { TypeOf } from "ts-expect"
6+ import type { Element } from "slate"
7+
8+ import type { Node } from "./Node.js"
9+
10+ test ( "Node type is assignable to Element type" , t => {
11+ expectType < TypeOf < Element , Node > > ( true )
12+
13+ t . pass ( )
14+ } )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type {Element} from "slate"
22
33import type { InlineDescendant } from "../internal/type/InlineDescendant.js"
44import type { WithId } from "../internal/type/WithId.js"
5+
56import type { Replace } from "./Replace.js"
67
78export type Node < T extends string = string > = Replace < Element , {
You can’t perform that action at this time.
0 commit comments