logger.d.ts 404 B

1234567891011121314
  1. /**
  2. * Types for the logger plugin.
  3. * This file must be put alongside the JavaScript file of the logger.
  4. */
  5. import { MutationObject, Plugin } from './types/index'
  6. export interface LoggerOption<S> {
  7. collapsed?: boolean;
  8. transformer?: (state: S) => any;
  9. mutationTransformer?: (mutation: MutationObject<any>) => any;
  10. }
  11. export default function createLogger<S>(option: LoggerOption<S>): Plugin<S>;