import { InterceptorConfig } from '../InterceptorConfig';
import { registerInterceptor } from '../InterceptorGenerator';
import { InterceptorHandler } from '../InterceptorHandler';
export class ModifierUppercaseConverter extends InterceptorConfig {
  constructor() {
    super('modifierUppercaseConverter');
  }
}
ModifierUppercaseConverter.id = 'modifierUppercaseConverter';
export class ModifierUppercaseConverterHandler extends InterceptorHandler {
  run(_context, _values, _field, value) {
    if (typeof value === 'string' || value instanceof String) {
      return { value: value.toUpperCase() };
    }
    return { value };
  }
}
registerInterceptor(ModifierUppercaseConverter.id, (_config) => new ModifierUppercaseConverterHandler());
