MatcherPatternHash,
MatcherPatternPath,
MatcherPatternQuery,
+ MatcherParamsFormatted,
+ EmptyParams,
} from './route-resolver/matchers/matcher-pattern'
*/
export interface MatcherPatternHash<
TParams extends MatcherParamsFormatted = MatcherParamsFormatted,
-> extends MatcherPattern<string, TParams> {} /**
+> extends MatcherPattern<string, TParams> {}
+
+/**
* Generic object of params that can be passed to a matcher.
*/
-export type MatcherParamsFormatted = Record<string, unknown> /**
+export type MatcherParamsFormatted = Record<string, unknown>
+
+/**
* Empty object in TS.
*/
export type EmptyParams = Record<PropertyKey, never>
getRecord,
getRecords,
}
-} /**
+}
+
+/**
* Performs a binary search to find the correct insertion index for a new matcher.
*
* Matchers are primarily sorted by their score. If scores are tied then we also consider parent/child relationships,
}
return
-} /**
+}
+
+/**
* Checks if a record or any of its parent is an alias
* @param record
*/
-
export function isAliasRecord<T extends NEW_MatcherDynamicRecord>(
record: T | undefined
): boolean {
EXPERIMENTAL_ResolverRecord_Matchable,
EXPERIMENTAL_ResolverStatic,
} from './route-resolver/resolver-static'
-import { ResolverLocationResolved } from './route-resolver/resolver-abstract'
/**
* resolve, reject arguments of Promise constructor