We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37c3202 commit c4256bcCopy full SHA for c4256bc
src/types.d.ts
@@ -4,9 +4,9 @@ import type { SemVer } from 'semver';
4
import type { Data, Node, Parent, Position } from 'unist';
5
6
// Unist Node with typed Data, which allows better type inference
7
-interface NodeWithData<T extends Node, J extends Data> extends T {
+type NodeWithData<T extends Node, J extends Data> = T & {
8
data: J;
9
-}
+};
10
11
declare global {
12
export interface StabilityIndexMetadataEntry {
0 commit comments