Skip to content

Commit

Permalink
feat(types): RegexString
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Oct 15, 2021
1 parent 59e1584 commit 2c7940f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ export type { default as PathValue } from './path-value.type'
export type { default as Path } from './path.type'
export type { default as PickByType } from './pick-by-type.type'
export type { default as Primitive } from './primitive.type'
export type { default as RegexString } from './regex-string.type'
export type { default as Split } from './split.type'
export type { default as Union } from './union.type'
11 changes: 11 additions & 0 deletions src/types/regex-string.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @file Type Definitions - RegexString
* @module tutils/types/RegexString
*/

/**
* Value that can be a `RegExp` object or string literal.
*/
type RegexString = RegExp | string

export default RegexString

0 comments on commit 2c7940f

Please sign in to comment.