---
url: /api/reference/wxt/interfaces/WxtDirFileEntry.md
---

[API](../../packages.md) / [wxt](../index.md) / WxtDirFileEntry

# Interface: WxtDirFileEntry

Source: [packages/wxt/src/types.ts:1942](https://github.com/wxt-dev/wxt/blob/385a5f49b5d7bf9e4a235f971b3aeb0a12a97a3d/packages/wxt/src/types.ts#L1942)

Represents a file to be written to the project's `.wxt/` directory.

## Contents

* [Properties](#properties)
  * [path](#path)
  * [text](#text)
  * [tsReference?](#tsreference)

## Properties

### path

> **path**: `string`

Source: [packages/wxt/src/types.ts:1947](https://github.com/wxt-dev/wxt/blob/385a5f49b5d7bf9e4a235f971b3aeb0a12a97a3d/packages/wxt/src/types.ts#L1947)

Path relative to the `.wxt/` directory. So "tsconfig.json" would resolve to
".wxt/tsconfig.json".

***

### text

> **text**: `string`

Source: [packages/wxt/src/types.ts:1949](https://github.com/wxt-dev/wxt/blob/385a5f49b5d7bf9e4a235f971b3aeb0a12a97a3d/packages/wxt/src/types.ts#L1949)

The text that will be written to the file.

***

### tsReference?

> `optional` **tsReference?**: `boolean`

Source: [packages/wxt/src/types.ts:1951](https://github.com/wxt-dev/wxt/blob/385a5f49b5d7bf9e4a235f971b3aeb0a12a97a3d/packages/wxt/src/types.ts#L1951)

Set to `true` to add a reference to this file in `.wxt/wxt.d.ts`.

***

Generated using [typedoc-plugin-markdown](https://www.npmjs.com/package/typedoc-plugin-markdown) and [TypeDoc](https://typedoc.org/)
