KanonschemaswrappersoptionalOn this pageoptional() optional<T>(schema): OptionalSchema<Schema<T>> Makes a schema optional (accepts undefined). Type Parametersโ T: Tโ Parametersโ schema: Schema<T>โ The schema to make optional Returns: OptionalSchema<Schema<T>>โ Schema that accepts the original type or undefined Sinceโ 2.0.0