Rest
...args: unknown[]oneOf`foo``bar`
oneOf(exactly`foo`, exactly`bar`)
oneOf('foo', 'bar')
RegExp equivalent:
/(?:foo|bar)/
Match one in the provided list of options.
Rest
...args: (string | RegExpToken)[]oneOf`foo``bar`
oneOf(exactly`foo`, exactly`bar`)
oneOf('foo', 'bar')
RegExp equivalent:
/(?:foo|bar)/
Generated using TypeDoc
Match one in the provided list of options.