Basic

About Config

The config is kept as an object. In this way, it can be stored in a file in JSON format, but it prevents some advanced features from being used. It is recommended to use it as a javascript object to access all the features of Muninn.

type Config = {
    [key: string]: Selector | SelectorConfig;
}
type Selector = string;
type SelectorConfig = {
  selector?: Selector;
  html?: boolean;
  attr?: string;
  type?: string;
  trim?: boolean;
  exist?: boolean;
  transform?: Function;
  arrayTransform?: Function;
  condition?: Function;
  methods?: string[];
  regex?: RegexConfig;
  initial?: any,
  fill?: any,
  schema?: {
    [key: string]: SelectorConfig;
  };
};

Last updated