Modifiers$optional$optional Callable$optional<T>(literal: T | () => T): OptionalType<T>Create a new ThereforeNode instance with the given options. Example$object({ foo: $optional($string)})Type parametersT: NodeParametersliteral: T | () => TThe schema to make an optional property.Returns OptionalType<T>
Create a new
ThereforeNode
instance with the given options.Example