Skip to content

Commit 0933486

Browse files
authored
fix: Correct customImport description
1 parent 6214a06 commit 0933486

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -367,21 +367,21 @@ Allow to declare custom import statements. (Only works with emitSingle = true)
367367

368368
```sh
369369
generator nestgraphql {
370-
decorate_{key}_from = "module specifier"
371-
decorate_{key}_name = "import name"
372-
decorate_{key}_defaultImport = "default import name" | true
373-
decorate_{key}_namespaceImport = "namespace import name"
374-
decorate_{key}_namedImport = "import name" | true
370+
customImport_{key}_from = "module specifier"
371+
customImport_{key}_name = "import name"
372+
customImport_{key}_defaultImport = "default import name" | true
373+
customImport_{key}_namespaceImport = "namespace import name"
374+
customImport_{key}_namedImport = "import name" | true
375375
}
376376
```
377377

378378
Where `{key}` any identifier to group values (written in [flatten](https://github.com/hughsk/flat) style)
379379

380-
- `decorate_{key}_from` - module specifier to import from (e.g `class-validator`)
381-
- `decorate_{key}_name` - import name or name with namespace
382-
- `decorate_{key}_defaultImport` - import as default
383-
- `decorate_{key}_namespaceImport` - use this name as import namespace
384-
- `decorate_{key}_namedImport` - named import (without namespace)
380+
- `customImport_{key}_from` - module specifier to import from (e.g `nestjs-i18n`)
381+
- `customImport_{key}_name` - import name or name with namespace
382+
- `customImport_{key}_defaultImport` - import as default
383+
- `customImport_{key}_namespaceImport` - use this name as import namespace
384+
- `customImport_{key}_namedImport` - named import (without namespace)
385385

386386
## Documentation and field options
387387

0 commit comments

Comments
 (0)