@avanio/variable-util
    Preparing search index...

    Interface IConfigParser<Input, Output>

    Interface for config parsers

    v1.0.0

    interface IConfigParser<Input, Output> {
        name: string;
        parse(parserProps: ParserProps): Input | Promise<Input>;
        postValidate?(
            postValidateProps: PostValidateProps<Input>,
        ): Output | Promise<Output | undefined> | undefined;
        preValidate?(preValidateProps: PreValidateProps): void | Promise<void>;
        toLogString?(config: Output): string;
        toString(config: Output, options?: EncodeOptions): string;
    }

    Type Parameters

    • Input

      Type of raw input value

    • Output

      Type of output value

    Implemented by

    Index

    Properties

    name: string

    name of the parser

    Methods