Azure / Azure/typespec-azure

Underscore-prefixed models referenced in public APIs are not exported

Open
#4,737 1 comment 0 reactions 1 assignee Claimed by @JialinHuang803 View on GitHub
emitter:typescript
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

The modular emitter filters out underscore-prefixed models from exports (see [buildRootIndex.ts](https://github.com/Azure/autorest.typescript/blob/b2525be465f78689eef4d46fc71afa51e4b14ef7/packages/typespec-ts/src/modular/buildRootIndex.ts#L304)) although they are referenced in the public APIs.

For example:
```
model _123Test { // not exported
id: string;
name: string;
}

op createTestData(
testData: _123Test
): _123Test;
```

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.