Added comments

This commit is contained in:
Alexander Cerutti
2019-08-14 15:51:04 +02:00
parent 80b874077f
commit 522b2fca62
2 changed files with 14 additions and 0 deletions

View File

@@ -5,6 +5,14 @@ import { getModelContents, readCertificatesFromOptions } from "./parser";
import { splitBufferBundle } from "./utils";
import { AbstractModel, AbstractFactoryOptions } from "./abstract";
/**
* Creates a new Pass instance.
*
* @param options Options to be used to create the instance or an Abstract Model reference
* @param additionalBuffers More buffers (with file name) to be added on runtime (if you are downloading some files from the web)
* @param abstractMissingData Additional data for abstract models, that might vary from pass to pass.
*/
export async function createPass(
options: FactoryOptions | AbstractModel,
additionalBuffers?: BundleUnit,