All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.core.cross.deserializer.ts Maven / Gradle / Ivy

import type { BaseDeserializerOptions } from '../context/deserializer';
import BaseDeserializerContext from '../context/deserializer';
import type { SerovalMode } from '../plugin';

export type CrossDeserializerContextOptions = BaseDeserializerOptions;

export default class CrossDeserializerContext extends BaseDeserializerContext {
  readonly mode: SerovalMode = 'cross';

  assignIndexedValue(index: number, value: T): T {
    if (!this.refs.has(index)) {
      this.refs.set(index, value);
    }
    return value;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy