export=: {
    getModeForPath: ((path) => Mode);
    modes: Mode[];
    modesByName: Record<string, Mode>;
}

Type declaration

  • getModeForPath: ((path) => Mode)
      • (path): Mode
      • Suggests a mode based on the file extension present in the given path

        Parameters

        • path: string

          The path to the file

        Returns Mode

        Returns an object containing information about the suggested mode.

  • modes: Mode[]
  • modesByName: Record<string, Mode>

Generated using TypeDoc