If two sources have the same tag, a source has none, a source's type isn't one of SourceType's, or the style isn't one of CitationStyle's
const doc = new Document({
bibliography: createBibliography({
style: CitationStyle.APA,
sources: [
{
tag: "Bak10",
type: SourceType.BOOK,
authors: [{ lastName: "Baker", firstName: "Anna" }],
title: "The Art of Pizza",
year: 2010,
city: "Naples",
publisher: "Oven Press",
},
],
}),
sections: [{ children: [new Paragraph({ children: [new Citation("Bak10")] }), new Bibliography({ title: "References" })] }],
});
A document's bibliography, for the document's
bibliography: the sources its citations and bibliographies refer to, and the style they're written in, as Word's References > Manage Sources and Style keep them.Every source is in the document's bibliographies, cited or not, as Word's are, and Word lists every source in its Source Manager.