File tree Expand file tree Collapse file tree 7 files changed +17
-7
lines changed Expand file tree Collapse file tree 7 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1717 strategy :
1818 matrix :
1919 node :
20- - lts/erbium
20+ - lts/fermium
2121 - node
Original file line number Diff line number Diff line change 1+ /* eslint-disable-next-line @typescript-eslint/consistent-type-imports -- fix in major */
12import { XAttributes , XChild , XResult } from './index.js'
23
34export namespace JSX {
@@ -11,6 +12,8 @@ export namespace JSX {
1112 */
1213 type IntrinsicAttributes = never
1314
15+ /* eslint-disable @typescript-eslint/consistent-type-definitions -- interfaces are required here */
16+
1417 /**
1518 * This defines the prop types for known elements.
1619 *
@@ -39,4 +42,6 @@ export namespace JSX {
3942 */
4043 children ?: never
4144 }
45+
46+ /* eslint-enable @typescript-eslint/consistent-type-definitions */
4247}
Original file line number Diff line number Diff line change 1+ /* eslint-disable-next-line @typescript-eslint/consistent-type-imports -- fix in major */
12import { XAttributes , XChild , XResult } from './index.js'
23
34/**
@@ -16,6 +17,8 @@ export type Element = XResult
1617 */
1718export type IntrinsicAttributes = never
1819
20+ /* eslint-disable @typescript-eslint/consistent-type-definitions -- interfaces are required here */
21+
1922/**
2023 * This defines the prop types for known elements.
2124 *
@@ -44,3 +47,5 @@ export interface ElementChildrenAttribute {
4447 */
4548 [ children ] ?: never
4649}
50+
51+ /* eslint-enable @typescript-eslint/consistent-type-definitions */
Original file line number Diff line number Diff line change 5555 "c8" : " ^7.0.0" ,
5656 "estree-util-build-jsx" : " ^2.0.0" ,
5757 "prettier" : " ^2.0.0" ,
58- "remark-cli" : " ^10 .0.0" ,
58+ "remark-cli" : " ^11 .0.0" ,
5959 "remark-preset-wooorm" : " ^9.0.0" ,
6060 "rimraf" : " ^3.0.0" ,
6161 "tape" : " ^5.0.0" ,
62- "tsd" : " ^0.20 .0" ,
62+ "tsd" : " ^0.23 .0" ,
6363 "type-coverage" : " ^2.0.0" ,
6464 "typescript" : " ^4.0.0" ,
6565 "unist-builder" : " ^3.0.0" ,
66- "xo" : " ^0.49 .0"
66+ "xo" : " ^0.52 .0"
6767 },
6868 "scripts" : {
6969 "prepack" : " npm run build && npm run format" ,
Original file line number Diff line number Diff line change 22/* @jsxImportSource .. */
33
44import { expectType , expectError } from 'tsd'
5- import { Root , Element } from 'xast'
5+ import type { Root , Element } from 'xast'
66import { x } from '../index.js'
77import { Fragment , jsx , jsxs } from '../jsx-runtime.js'
88
Original file line number Diff line number Diff line change 11/* @jsx x */
22/* @jsxFrag null */
33import { expectType , expectError } from 'tsd'
4- import { Root , Element } from 'xast'
4+ import type { Root , Element } from 'xast'
55import { x } from '../index.js'
66
77type Result = Element | Root
Original file line number Diff line number Diff line change 11import { expectType , expectError } from 'tsd'
2- import { Root , Element } from 'xast'
2+ import type { Root , Element } from 'xast'
33import { x } from '../index.js'
44
55expectType < Root > ( x ( ) )
You can’t perform that action at this time.
0 commit comments