@@ -62,6 +62,13 @@ export function createFilter(
6262 */
6363export function dataToEsm ( data : unknown , options ?: DataToEsmOptions ) : string ;
6464
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+
6572/**
6673 * Extracts the names of all assignment targets based upon specified patterns.
6774 * @param param An `acorn` AST Node.
@@ -78,21 +85,32 @@ export function makeLegalIdentifier(str: string): string;
7885 */
7986export function normalizePath ( filename : string ) : string ;
8087
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+
8195export type AddExtension = typeof addExtension ;
8296export type AttachScopes = typeof attachScopes ;
8397export type CreateFilter = typeof createFilter ;
98+ export type ExactRegex = typeof exactRegex ;
8499export type ExtractAssignedNames = typeof extractAssignedNames ;
85100export type MakeLegalIdentifier = typeof makeLegalIdentifier ;
86101export type NormalizePath = typeof normalizePath ;
87102export type DataToEsm = typeof dataToEsm ;
103+ export type PrefixRegex = typeof prefixRegex ;
88104
89105declare const defaultExport : {
90106 addExtension : AddExtension ;
91107 attachScopes : AttachScopes ;
92108 createFilter : CreateFilter ;
93109 dataToEsm : DataToEsm ;
110+ exactRegex : ExactRegex ;
94111 extractAssignedNames : ExtractAssignedNames ;
95112 makeLegalIdentifier : MakeLegalIdentifier ;
96113 normalizePath : NormalizePath ;
114+ prefixRegex : PrefixRegex ;
97115} ;
98116export default defaultExport ;
0 commit comments