string: StringPattern

P.string is a wildcard pattern, matching any string.

Read the documentation for P.string on GitHub

Example

match(value)
.with(P.string, () => 'will match on strings')