UNPKG

ts-japi

Version:

A highly-modular (typescript-friendly)-framework agnostic library for serializing data to the JSON:API specification

18 lines 445 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ResourceIdentifier { type; id; meta; constructor(id, type, options) { this.type = type; this.id = id; if (options.meta) this.meta = options.meta; } getKey() { return `[${this.type}:${this.id}]`; } } exports.default = ResourceIdentifier; //# sourceMappingURL=resource-identifier.model.js.map