UNPKG

sussudio

Version:

An unofficial VS Code Internal API

18 lines (17 loc) 982 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ export declare const Mimes: Readonly<{ text: "text/plain"; binary: "application/octet-stream"; unknown: "application/unknown"; markdown: "text/markdown"; latex: "text/latex"; uriList: "text/uri-list"; }>; export declare function getMediaOrTextMime(path: string): string | undefined; export declare function getMediaMime(path: string): string | undefined; export declare function getExtensionForMimeType(mimeType: string): string | undefined; export declare function normalizeMimeType(mimeType: string): string; export declare function normalizeMimeType(mimeType: string, strict: true): string | undefined;