gristlabs / gristlabs/ts-interface-builder

Possibility to support "Node IndexedAccessType"

Open
#37 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
138
Forks
31
PR merge metrics
No merged PRs in 30d

Description

```ts
export interface ICharacter {
id: string;
username: string;
}

export interface ICreateCharacterArguments {
username: ICharacter['username'];
};
```

Currently generating from this file fails with following error
`Error: Node IndexedAccessType not supported by ts-interface-builder: ICharacter['username']`

EDIT: Additional context on this type https://www.typescriptlang.org/docs/handbook/2/indexed-access-types.html

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.