UNPKG

definition-header

Version:
18 lines 765 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var assertion = require("./assertion"); function stringify(header) { assertion.header(header); var ret = []; ret.push('// Type definitions for ' + header.label.name + (header.label.version ? ' v' + header.label.version : '')); ret.push('// Project: ' + header.project.map(function (project) { return project.url; }).join(', ')); ret.push('// Definitions by: ' + header.authors.map(function (author) { return author.name + (author.url ? ' <' + author.url + '>' : ''); }).join(', ')); ret.push('// Definitions: ' + header.repository.url); return ret; } exports.stringify = stringify; //# sourceMappingURL=serialise.js.map