mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-15 21:39:40 +02:00
refactor: Fix types
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
import type { AstNode } from 'langium';
|
||||
|
||||
export type { Info, Packet } from './language/index.js';
|
||||
export { MermaidParseError, parse } from './parse.js';
|
||||
export type { DiagramAST } from './parse.js';
|
||||
export { parse, MermaidParseError } from './parse.js';
|
||||
|
||||
/**
|
||||
* Exclude/omit all `AstNode` attributes recursively.
|
||||
*/
|
||||
export type RecursiveAstOmit<T> = T extends object
|
||||
? { [P in keyof T as Exclude<P, keyof AstNode>]: RecursiveAstOmit<T[P]> }
|
||||
: T;
|
||||
|
Reference in New Issue
Block a user