Skip to content

Commit e584058

Browse files
author
Ben Grynhaus
committed
Remove types that didn't work well
1 parent 2c774be commit e584058

File tree

3 files changed

+1
-26
lines changed

3 files changed

+1
-26
lines changed

libs/core/src/lib/declarations/index-signature.d.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
import { IndexSignature } from './index-signature';
54
import { KnownKeys } from './known-keys';
6-
import { UnknownKeys } from './unknown-keys';
75

8-
export type _KnownKeysOmit<T, K extends keyof T> = Pick<T, Exclude<KnownKeys<T> & keyof T, K>>;
9-
export type Omit<T, K extends keyof T> = UnknownKeys<T> extends never
10-
? _KnownKeysOmit<T, K>
11-
: _KnownKeysOmit<T, K> & IndexSignature<T>;
6+
export type Omit<T, K extends keyof T> = Pick<T, Exclude<KnownKeys<T> & keyof T, K>>;

libs/core/src/lib/declarations/unknown-keys.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)