Declaration of module entry.

interface EntryDecl {
    as?: string;
    file?: string;
    lib?: string | boolean | readonly string[];
    refs?: boolean;
}

Properties

Properties

as?: string

Final entry name.

When specified, the original entry name is replaced with <moduleName>/<as>.

The same as entry name.
file?: string

Output .d.ts file name relative to output directory.

When omitted the contents are merged into main .d.ts. file.

lib?: string | boolean | readonly string[]

Whether to add triple-slash directives to refer the libraries used by this entry.

Allowed values:

  • true to add an entry for each referred library from lib compiler option,
  • false (the default) to not add any library references,
  • an explicit list of libraries to refer.

Inherited from lib flattening option.

refs?: boolean

Whether to add file references.

A file reference is added for each entry this one refers.

Inherited from refs flattening option.