Markupless Documentation - v0.4.3
Preparing search index...
utils/validators
Validator
Type Alias Validator<T>
Validator
:
(
value
:
T
)
=>
string
|
null
Type definition for a validator function. Returns an error string if invalid, or null if valid.
Type Parameters
T
Type Declaration
(
value
:
T
)
:
string
|
null
Parameters
value
:
T
Returns
string
|
null
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
src
core
index.ts
app
App
effect
isState
Plugin
RouteHandler
Router
state
State
STATE_SYMBOL
app.ts
App
app
default
component.ts
logic.ts
plugin.ts
Plugin
rendering.ts
router.ts
Router
RouteHandler
state.ts
State
STATE_SYMBOL
effect
isState
state
theme.ts
types.ts
elements
index.ts
article
aside
audio
BaseElement
button
ButtonElement
ContainerElement
ContainerFactory
div
em
footer
h1
h2
h3
h4
h5
h6
header
ImageElement
img
input
InputElement
InteractiveElement
li
ListElement
ListItemElement
main
MediaElement
nav
ol
option
p
section
select
small
span
strong
table
TableElement
tbody
td
textarea
TextElement
TextFactory
th
thead
tr
ul
video
base-element.ts
BaseElement
container.ts
ContainerElement
ContainerFactory
article
aside
div
footer
header
main
nav
section
interactive.ts
ButtonElement
InputElement
InteractiveElement
button
input
option
select
textarea
list-element.ts
ListElement
ListItemElement
li
ol
ul
media-element.ts
ImageElement
MediaElement
audio
img
video
table-element.ts
TableElement
table
tbody
td
th
thead
tr
text-elements.ts
TextElement
TextFactory
em
h1
h2
h3
h4
h5
h6
p
small
span
strong
types.ts
MagicArg
styles
index.ts
createTheme
CSSValue
StyleManager
StyleObject
ThemeConfig
ThemeValue
base-style.ts
style-manager.ts
StyleManager
theme.ts
ThemeConfig
ThemeValue
createTheme
types.ts
StyleObject
CSSValue
utils
index.ts
email
max
maxLength
min
minLength
pattern
required
validate
Validator
helpers.ts
types.ts
validators.ts
Validator
email
required
max
maxLength
min
minLength
pattern
validate
index.ts
app
App
article
aside
audio
BaseElement
button
ButtonElement
ContainerElement
ContainerFactory
createTheme
CSSValue
div
effect
em
email
footer
h1
h2
h3
h4
h5
h6
header
ImageElement
img
input
InputElement
InteractiveElement
isState
li
ListElement
ListItemElement
main
max
maxLength
MediaElement
min
minLength
nav
ol
option
p
pattern
Plugin
required
RouteHandler
Router
section
select
small
span
state
State
STATE_SYMBOL
strong
StyleManager
StyleObject
table
TableElement
tbody
td
textarea
TextElement
TextFactory
th
thead
ThemeConfig
ThemeValue
tr
ul
validate
Validator
video
Type definition for a validator function. Returns an error string if invalid, or null if valid.