Skip to main content

stringValue

function

Build a SerializationSchema that returns `value` when it is a `string`, otherwise returns `defaultValue` (the empty string by default).

function stringValue(defaultValue?: string): SerializationSchema<string>

Import

import { stringValue } from '@modular/sdk/editor';

Notes

__NO_SIDE_EFFECTS__