mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Revise IndexType to have stringsOnly property
This commit is contained in:
1 parent
254782c06f
commit
9e4e215a03
2 files changed
+21
-20
No files matched your search
@@ -3761,7 +3761,7 @@ namespace ts {
|
||||
/* @internal */
|
||||
resolvedIndexType: IndexType;
|
||||
/* @internal */
|
||||
resolvedDeclaredIndexType: IndexType;
|
||||
resolvedStringIndexType: IndexType;
|
||||
/* @internal */
|
||||
resolvedBaseConstraint: Type;
|
||||
/* @internal */
|
||||
@@ -3850,7 +3850,7 @@ namespace ts {
|
||||
/* @internal */
|
||||
resolvedIndexType?: IndexType;
|
||||
/* @internal */
|
||||
resolvedDeclaredIndexType?: IndexType;
|
||||
resolvedStringIndexType?: IndexType;
|
||||
}
|
||||
|
||||
// Type parameters (TypeFlags.TypeParameter)
|
||||
@@ -3882,9 +3882,9 @@ namespace ts {
|
||||
|
||||
// keyof T types (TypeFlags.Index)
|
||||
export interface IndexType extends InstantiableType {
|
||||
/* @internal */
|
||||
isDeclaredType?: boolean;
|
||||
type: InstantiableType | UnionOrIntersectionType;
|
||||
/* @internal */
|
||||
stringsOnly: boolean;
|
||||
}
|
||||
|
||||
export interface ConditionalRoot {
|
||||
|
||||
Reference in new issue
Block a user