@types/codemirror
Version:
TypeScript definitions for codemirror
20 lines (17 loc) • 573 B
TypeScript
import "../";
export interface ModeInfo {
name: string;
mime?: string | undefined;
mimes?: string[] | undefined;
mode: string;
file?: RegExp | undefined;
ext?: string[] | undefined;
alias?: string[] | undefined;
}
declare module "../" {
const modeInfo: ModeInfo[];
function findModeByMIME(mime: string): ModeInfo | undefined;
function findModeByExtension(ext: string): ModeInfo | undefined;
function findModeByFileName(filename: string): ModeInfo | undefined;
function findModeByName(name: string): ModeInfo | undefined;
}