UNPKG

@eclipse-emfcloud/model-manager

Version:

Command-based model editing with undo/redo.

18 lines (16 loc) 829 B
// ***************************************************************************** // Copyright (C) 2023-2024 STMicroelectronics. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at // http://www.eclipse.org/legal/epl-2.0. // // This Source Code may also be made available under the following Secondary // Licenses when the conditions for such availability set forth in the Eclipse // Public License v. 2.0 are satisfied: MIT License which is // available at https://opensource.org/licenses/MIT. // // SPDX-License-Identifier: EPL-2.0 OR MIT // ***************************************************************************** /** A type that either is asynchronous (awaitable) or not. */ export type MaybePromise<T> = T | PromiseLike<T>;