denoify
Version:
For NPM module authors that would like to support Deno but do not want to write and maintain a port.
11 lines (10 loc) • 347 B
TypeScript
export type ConfigFileType = {
type: "absent";
} | {
type: "js" | "json";
configFileBasename: string;
configFileRawContent: string;
};
export default function getFileTypeAndContent({ getConfigFileRawContent }: {
getConfigFileRawContent: (configFileBasename: string) => Promise<string | undefined>;
}): Promise<ConfigFileType>;