mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Make some internal types @internal (#22190)
This commit is contained in:
@@ -3906,6 +3906,7 @@ namespace ts {
|
||||
AlwaysStrict = 1 << 4, // Always use strict rules for contravariant inferences
|
||||
}
|
||||
|
||||
/* @internal */
|
||||
export interface InferenceInfo {
|
||||
typeParameter: TypeParameter; // Type parameter for which inferences are being made
|
||||
candidates: Type[]; // Candidates in covariant positions (or undefined)
|
||||
@@ -3916,6 +3917,7 @@ namespace ts {
|
||||
isFixed: boolean; // True if inferences are fixed
|
||||
}
|
||||
|
||||
/* @internal */
|
||||
export const enum InferenceFlags {
|
||||
None = 0, // No special inference behaviors
|
||||
InferUnionTypes = 1 << 0, // Infer union types for disjoint candidates (otherwise unknownType)
|
||||
@@ -3932,12 +3934,14 @@ namespace ts {
|
||||
* x | y is Maybe if either x or y is Maybe, but neither x or y is True.
|
||||
* x | y is True if either x or y is True.
|
||||
*/
|
||||
/* @internal */
|
||||
export const enum Ternary {
|
||||
False = 0,
|
||||
Maybe = 1,
|
||||
True = -1
|
||||
}
|
||||
|
||||
/* @internal */
|
||||
export type TypeComparer = (s: Type, t: Type, reportErrors?: boolean) => Ternary;
|
||||
|
||||
/* @internal */
|
||||
|
||||
Reference in New Issue
Block a user