You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/bicep-import.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,14 @@ title: Imports in Bicep
3
3
description: Describes how to import shared functionality and namespaces in Bicep.
4
4
ms.topic: conceptual
5
5
ms.custom: devx-track-bicep
6
-
ms.date: 11/03/2023
6
+
ms.date: 06/03/2024
7
7
---
8
8
9
9
# Imports in Bicep
10
10
11
11
This article describes the syntax you use to export and import shared functionality, as well as namespaces for Bicep extensibility providers.
12
12
13
-
## Exporting types, variables and functions (Preview)
13
+
## Exporting types, variables and functions
14
14
15
15
The `@export()` decorator is used to indicate that a given statement can be imported by another file. This decorator is only valid on type, variable and function statements. Variable statements marked with `@export()` must be compile-time constants.
16
16
@@ -21,7 +21,7 @@ The syntax for exporting functionality for use in other Bicep files is:
21
21
<statement_to_export>
22
22
```
23
23
24
-
## Import types, variables and functions (Preview)
24
+
## Import types, variables and functions
25
25
26
26
The syntax for importing functionality from another Bicep file is:
27
27
@@ -43,7 +43,7 @@ import * as <alias_name> from '<bicep_file_name>'
43
43
44
44
You can mix and match the preceding syntaxes. To access imported symbols using the wildcard syntax, you must use the `.` operator: `<alias_name>.<exported_symbol>`.
45
45
46
-
Only statements that have been [exported](#exporting-types-variables-and-functions-preview) in the file being referenced are available to be imported.
46
+
Only statements that have been [exported](#exporting-types-variables-and-functions) in the file being referenced are available to be imported.
47
47
48
48
Functionality that has been imported from another file can be used without restrictions. For example, imported variables can be used anywhere a variable declared in-file would normally be valid.
0 commit comments