UNPKG

ts-add-js-extension

Version:

Add .js extension to each relative ESM import and export statement in JavaScript file

17 lines (16 loc) 688 B
import type { PartialConfig } from './cli-command-parser'; /** * @deprecated since version 1.4.0 * Will be deleted in version 2.0 * There is no need to parse config with this function * As configurations can be passed directly * Using this function will halt the program * And requires you to write configs directly * */ declare const parseConfig: (_: Readonly<Record<string, unknown>>) => never; type NormalisedConfig<T = PartialConfig> = Readonly<{ [K in keyof T]-?: NonNullable<T[K]>; }>; declare const normaliseConfig: (config: PartialConfig) => Omit<NormalisedConfig, "showChanges">; export { normaliseConfig, parseConfig }; export type { PartialConfig as ParsedConfig };