UNPKG

@sussudio/base

Version:

Internal APIs for VS Code's utilities and user interface building blocks.

19 lines (17 loc) 965 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;