@@ -62,6 +62,13 @@ export function createFilter(
62
62
*/
63
63
export function dataToEsm ( data : unknown , options ?: DataToEsmOptions ) : string ;
64
64
65
+ /**
66
+ * Constructs a RegExp that matches the exact string specified.
67
+ * @param str the string to match.
68
+ * @param flags flags for the RegExp.
69
+ */
70
+ export function exactRegex ( str : string , flags ?: string ) : RegExp ;
71
+
65
72
/**
66
73
* Extracts the names of all assignment targets based upon specified patterns.
67
74
* @param param An `acorn` AST Node.
@@ -78,21 +85,32 @@ export function makeLegalIdentifier(str: string): string;
78
85
*/
79
86
export function normalizePath ( filename : string ) : string ;
80
87
88
+ /**
89
+ * Constructs a RegExp that matches a value that has the specified prefix.
90
+ * @param str the string to match.
91
+ * @param flags flags for the RegExp.
92
+ */
93
+ export function prefixRegex ( str : string , flags ?: string ) : RegExp ;
94
+
81
95
export type AddExtension = typeof addExtension ;
82
96
export type AttachScopes = typeof attachScopes ;
83
97
export type CreateFilter = typeof createFilter ;
98
+ export type ExactRegex = typeof exactRegex ;
84
99
export type ExtractAssignedNames = typeof extractAssignedNames ;
85
100
export type MakeLegalIdentifier = typeof makeLegalIdentifier ;
86
101
export type NormalizePath = typeof normalizePath ;
87
102
export type DataToEsm = typeof dataToEsm ;
103
+ export type PrefixRegex = typeof prefixRegex ;
88
104
89
105
declare const defaultExport : {
90
106
addExtension : AddExtension ;
91
107
attachScopes : AttachScopes ;
92
108
createFilter : CreateFilter ;
93
109
dataToEsm : DataToEsm ;
110
+ exactRegex : ExactRegex ;
94
111
extractAssignedNames : ExtractAssignedNames ;
95
112
makeLegalIdentifier : MakeLegalIdentifier ;
96
113
normalizePath : NormalizePath ;
114
+ prefixRegex : PrefixRegex ;
97
115
} ;
98
116
export default defaultExport ;
0 commit comments