feat: account for the fact that an error may be a `DetailedError`

This commit is contained in:
Basti Ortiz 2022-10-12 01:06:31 +08:00
parent e8cd3c0baf
commit 17ff584d15
No known key found for this signature in database
GPG Key ID: 1402D5CB17F48E1B
1 changed files with 2 additions and 2 deletions

View File

@ -2,9 +2,9 @@ import * as configApi from './config';
import { log } from './logger';
import { getDiagram, registerDiagram } from './diagram-api/diagramAPI';
import { detectType, getDiagramLoader } from './diagram-api/detectType';
import { isDetailedError } from './utils';
import { isDetailedError, type DetailedError } from './utils';
export type ParseErrorFunction = (str: string, hash?: any) => void;
export type ParseErrorFunction = (err: string | DetailedError, hash?: any) => void;
export class Diagram {
type = 'graph';