Skip to content

Commit

Permalink
Update shared.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jan 22, 2025
1 parent 29f1d5f commit c8e67fc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test-workspace/tsc/passedFixtures/shared.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@ type IfEquals<T, U, Y = unknown, N = never> =
(<G>() => G extends T ? 1 : 2) extends
(<G>() => G extends U ? 1 : 2) ? Y : N;
export declare function exactType<T, U>(draft: T & IfEquals<T, U>, expected: U & IfEquals<T, U>): IfEquals<T, U>;

// https://stackoverflow.com/a/49928360
type IfNotAny<T> = 0 extends 1 & T ? never : T;
type IfNotUndefined<T> = Exclude<T, undefined> extends never ? never : T;
export declare function isNotAnyOrUndefined<T>(value: IfNotAny<IfNotUndefined<T>>): void;

0 comments on commit c8e67fc

Please sign in to comment.