Skip to content

Commit 7389148

Browse files
author
rzymek
committed
DslDebug.tsx
1 parent 5b871e6 commit 7389148

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
export {DslEditor} from './ui/editor.js';
2-
export {createParser} from './api/parser.js';
1+
export {DslEditor} from "./ui/DslEditor.js"
2+
export {DslDebug} from "./ui/DslDebug.js"
3+
export {createParser} from "./api/parser.js"

src/ui/DslDebug.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export function DslDebug(props: { result: {} }) {
2+
return <pre>{JSON.stringify(
3+
props.result,
4+
(key, value) => key.startsWith("$") ? undefined : value,
5+
2,
6+
)}</pre>
7+
}
File renamed without changes.

0 commit comments

Comments
 (0)