grantila / grantila/typeconv

TypeScript Partial<Pick<MyClass, 'property'>> results in Cyclic type found

Open
#47 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
447
Forks
10
PR merge metrics
No merged PRs in 30d

Description

When I use TypeScript syntax `MyInterface & Partial>` to pick some properties of an interface and make them optional, typeconv throws the error "Cyclic type found when trying to inline type".

It works if I manually define the picked properties with `MyInterface & { property?: string }`.

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.