Skip to content

Documentation / @ember-data/legacy-compat / utils / configureTypeNormalization

ts
function configureTypeNormalization(fn): void;

Defined in: utils.ts:71

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

Returns

void

Released under the MIT License.