@legacy
Documentation / @warp-drive/legacy / compat/utils / configureTypeNormalization
Documentation / @warp-drive/legacy / compat/utils / configureTypeNormalization
Function: configureTypeNormalization()
ts
function configureTypeNormalization(fn): void;
Defined in: warp-drive-packages/legacy/src/compat/utils.ts:70
Configure a function to be called to normalize a resource type string. Used by both formattedType and isEquivType to ensure consistent normalization during comparison.
If validation fails or the type turns out be unnormalized the configured mismatch reporter and assert functions will be called.
Parameters
fn
(type
) => string
a function which takes a string and returns a string
Returns
void