Module build/webpack/plugins/jsconfig-paths-plugin
Functions
findBestPatternMatch
findBestPatternMatch<T>( values: readonly T [] , getPattern: ( value: T ) => Pattern , candidate: string ) : T | undefined
Defined in packages/next/dist/build/webpack/plugins/jsconfig-paths-plugin.d.ts:13
Type parameters
Parameters
values: readonly T []
getPattern: ( value: T ) => Pattern
candidate: string
Returns T | undefined
hasZeroOrOneAsteriskCharacter
hasZeroOrOneAsteriskCharacter( str: string ) : boolean
Defined in packages/next/dist/build/webpack/plugins/jsconfig-paths-plugin.d.ts:6
Parameters
Returns boolean
isString
isString( text: unknown ) : text is string
Defined in packages/next/dist/build/webpack/plugins/jsconfig-paths-plugin.d.ts:23
Parameters
Returns text is string
matchPatternOrExact
matchPatternOrExact( patternStrings: readonly string [] , candidate: string ) : string | Pattern | undefined
Defined in packages/next/dist/build/webpack/plugins/jsconfig-paths-plugin.d.ts:19
Parameters
patternStrings: readonly string []
candidate: string
Returns string | Pattern | undefined
matchedText
matchedText( pattern: Pattern , candidate: string ) : string
Defined in packages/next/dist/build/webpack/plugins/jsconfig-paths-plugin.d.ts:28
Parameters
Returns string
pathIsRelative
pathIsRelative( testPath: string ) : boolean
Defined in packages/next/dist/build/webpack/plugins/jsconfig-paths-plugin.d.ts:10
Parameters
Returns boolean
patternText
patternText( __namedParameters: Pattern ) : string
Defined in packages/next/dist/build/webpack/plugins/jsconfig-paths-plugin.d.ts:29
Parameters
Returns string
tryParsePattern
tryParsePattern( pattern: string ) : Pattern | undefined
Defined in packages/next/dist/build/webpack/plugins/jsconfig-paths-plugin.d.ts:11
Parameters
Returns Pattern | undefined
Legend
Namespace
Variable
Function
Function with type parameter
Type alias
Type alias with type parameter
Interface
Interface with type parameter
Class
Class with type parameter
Return the object corresponding to the best pattern to match
candidate.