imdb-listimporter
Version:
Import lists from IMDb.
16 lines (15 loc) • 597 B
TypeScript
import { Film } from "./types/film.js";
import { ListVariant } from "./types/listVariant.js";
import ParserOptions from "./types/parserOptions.js";
/**
* Parses the input string into either an array of Film or a 2D array of strings
*
* @param input a string that must be a valid CSV
* @param options parsing options
* @returns either an array of Film or a 2D array of strings
*/
declare const parse: (input: string, options?: ParserOptions) => Film[] | string[][];
export default parse;
export declare const exportsForTests: {
detectVersion: (header: string[]) => ListVariant | null;
};