UNPKG

765 BJavaScriptView Raw
1'use strict';
2Object.defineProperty(exports, "__esModule", { value: true });
3var assertion = require("./assertion");
4function stringify(header) {
5 assertion.header(header);
6 var ret = [];
7 ret.push('// Type definitions for ' + header.label.name + (header.label.version ? ' v' + header.label.version : ''));
8 ret.push('// Project: ' + header.project.map(function (project) {
9 return project.url;
10 }).join(', '));
11 ret.push('// Definitions by: ' + header.authors.map(function (author) {
12 return author.name + (author.url ? ' <' + author.url + '>' : '');
13 }).join(', '));
14 ret.push('// Definitions: ' + header.repository.url);
15 return ret;
16}
17exports.stringify = stringify;
18//# sourceMappingURL=serialise.js.map
\No newline at end of file