# TsDynamicImport

CLASS in `@skmtc/lang-typescript 0.19.1`

`import('<module>')`: a dynamic import, written where the snippet stands in
the code, not in the file's header. The module loads when the expression
runs, so the file does not load it at startup. The module text is the text
a header import in the same file gets (`toRenderedModule`).

The file must not also import the module in its header: ES modules load
header imports first, so the module would load at startup after all. A
type-only header import is fine; it is erased.

## Signature

```ts
import { TsDynamicImport } from '@skmtc/lang-typescript'

class TsDynamicImport extends TsSnippet
```

## Constructor

### constructor

```ts
constructor(args: TsDynamicImportArgs)
```

## Properties

- `module` (string): The module text, as a header import in this file renders it.

## Methods

### toString

```ts
toString(): string
```
