Skip to content

Commit

Permalink
Create TS definitions for JSX in slate/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timbuckley committed Aug 11, 2020
1 parent 6f8c1f6 commit a634d3d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/slate-history/test/jsx.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// This allows tests to include Slate Nodes written in JSX without TypeScript complaining.
declare namespace jsx.JSX {
interface IntrinsicElements {
[elemName: string]: any // eslint-disable-line
}
}
6 changes: 6 additions & 0 deletions packages/slate-hyperscript/test/jsx.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// This allows tests to include Slate Nodes written in JSX without TypeScript complaining.
declare namespace jsx.JSX {
interface IntrinsicElements {
[elemName: string]: any // eslint-disable-line
}
}
6 changes: 6 additions & 0 deletions packages/slate/test/jsx.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// This allows tests to include Slate Nodes written in JSX without TypeScript complaining.
declare namespace jsx.JSX {
interface IntrinsicElements {
[elemName: string]: any // eslint-disable-line
}
}

0 comments on commit a634d3d

Please sign in to comment.