Skip to content

Commit 1ad00f6

Browse files
Merge pull request #252335 from mumian/0920-type-import
clarify compileTimeImport
2 parents c8dfe9d + d3d280e commit 1ad00f6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

articles/azure-resource-manager/bicep/bicep-import.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Import Bicep namespaces
33
description: Describes how to import Bicep namespaces.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 09/14/2023
6+
ms.date: 09/21/2023
77
---
88

99
# Import Bicep namespaces
@@ -29,7 +29,7 @@ import * as <namespace> from '<bicep-file-name>'
2929

3030
You can mix and match the two preceding syntaxes.
3131

32-
Only user-defined data types that bear the [@export() decorator](./user-defined-data-types.md#decorator) can be imported. Currently, this decorator can only be used on [`type`](./user-defined-data-types.md) statements.
32+
Only user-defined data types that bear the [@export() decorator](./user-defined-data-types.md#import-types-between-bicep-files-preview) can be imported. Currently, this decorator can only be used on [`type`](./user-defined-data-types.md) statements.
3333

3434
Imported types can be used anywhere a user-defined type might be, for example, within the type clauses of type, param, and output statements.
3535

articles/azure-resource-manager/bicep/user-defined-data-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: User-defined types in Bicep
33
description: Describes how to define and use user-defined data types in Bicep.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 09/14/2023
6+
ms.date: 09/20/2023
77
---
88

99
# User-defined data types in Bicep
@@ -217,9 +217,9 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2022-09-01' = {
217217
}
218218
```
219219

220-
## Decorator
220+
## Import types between Bicep files (Preview)
221221

222-
[Bicep version 0.21.1 or newer](./install.md) is required to use this feature. The experimental flag `compileTimeImports` must be enabled from the [Bicep config file](./bicep-config.md#enable-experimental-features).
222+
[Bicep version 0.21.1 or newer](./install.md) is required to use this compile-time import feature. The experimental flag `compileTimeImports` must be enabled from the [Bicep config file](./bicep-config.md#enable-experimental-features).
223223

224224
Only user-defined data types that bear the `@export()` decorator can be imported to other templates. Currently, this decorator can only be used on `type` statements.
225225

0 commit comments

Comments
 (0)