Azure / Azure/bicep

bicepparam typed variables support

Open
#17,052 0 comments 0 reactions 1 assignee Claimed by @anthony-c-martin View on GitHub
enhancement story: bicep parameters
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Is your feature request related to a problem? Please describe.**
Currently, with experimental feature typed variables, to use them in bicepparam, I need to use import statement

bicepparam
```bicep
using '../module.bicep'

import * as types from 'module.bicep'

var typedVar { *: types.TType } = {}
```
where module.bicep looks like
```bicep
@export()
type TType { someProp: string? }
```

**Describe the solution you'd like**
I would like to avoid explicit export of type nad using import. the `using` statement should allow me direct, no namespaced access to types declared in referenced bicep file

bicepparam
```bicep
using 'module.bicep'

var typedVar { *: TType } = {}
```
module.bicep
```bicep
type TType { someProp: string? }
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.