NodeFile

constructor(sources: PolyglotValue, fileName: PolyglotValue)

Create a new NodeFile with the given sources and fileName, using default options. The sources value must have array elements of the supported type, meaning each item should either have buffer elements, or expose a buffer property that does. The fileName must be a string value.


constructor(sources: PolyglotValue, fileName: PolyglotValue, options: PolyglotValue?)

Create a new NodeFile with the given sources, fileName, and options. The sources value must have array elements of the supported type, meaning each item should either have buffer elements, or expose a buffer property that does. The fileName must be a string value.

The options object may specify a type property with a string value to set the type field, and a lastModified property with a numeric value to set the lastModified field.