Skip to content

Bug ConditionalPick #1197

@salisbury-espinosa

Description

@salisbury-espinosa

Bug description

import type { ConditionalPick } from 'type-fest';

interface TestInterface {
  a: string;
}

// TS validates that everything is ok - WHY ? 
// ConditionalPick<TestInterface, number> === {} .....

const test123123123: ConditionalPick<TestInterface, number> = {
  sdfsdfsdf: 'asdasd',
};

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions