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 fd28053
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/slate/test/tests.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 fd28053

Please sign in to comment.