UNPKG

monaco-editor-core

Version:

A browser based code editor

14 lines (13 loc) 653 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ export function isLocalizedString(thing) { return thing && typeof thing === 'object' && typeof thing.original === 'string' && typeof thing.value === 'string'; } export function isICommandActionToggleInfo(thing) { return thing ? thing.condition !== undefined : false; }