monaco-editor-core
Version:
A browser based code editor
14 lines • 689 B
JavaScript
/*---------------------------------------------------------------------------------------------
* 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;
}
//# sourceMappingURL=action.js.map