Improves serializer documentation.

This commit is contained in:
Henning Dieterichs
2020-08-16 11:01:53 +02:00
parent 41357e6821
commit c0e10d9a97
5 changed files with 21 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ import {
sLiteral,
sString,
sOptionalProp,
sProp,
} from "@hediet/semantic-json";
import React from "react";
import { getLanguageId, MonacoEditor } from "./MonacoEditor";
@@ -19,7 +20,7 @@ export const monacoTextVisualizer = createVisualizer({
kind: sOpenObject({
text: sLiteral(true),
}),
text: sString(),
text: sProp( sString(), { description: "The text to show" }),
fileName: sOptionalProp(sString(), {
description:
"An optional filename that might be used for chosing a syntax highlighter",