UNPKG

@eclipse-glsp/protocol

Version:

The protocol definition for client-server communication in GLSP

15 lines 858 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isGModelElementSchema = isGModelElementSchema; const type_util_1 = require("../utils/type-util"); /** Serializable representation of GModel elements. This is the transfer format * used to exchange model information between client and server. Both the client and * server have a deserialization mechanism in place to convert a GModelElementSchema * into the corresponding class-based model (or EMF-based in case of the Java Server). * * To ensure sprotty compatibility all types are just aliases of the corresponding Sprotty SModel API element. */ function isGModelElementSchema(object) { return typeof object === 'object' && (0, type_util_1.hasStringProp)(object, 'type') && (0, type_util_1.hasStringProp)(object, 'id'); } //# sourceMappingURL=model-schema.js.map