mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
essymbol and object
This commit is contained in:
@@ -2295,10 +2295,10 @@ namespace ts {
|
||||
return createKeywordTypeNode(SyntaxKind.NeverKeyword);
|
||||
}
|
||||
if (type.flags & TypeFlags.ESSymbol) {
|
||||
throw new Error("ESSymbol not implemented");
|
||||
return createKeywordTypeNode(SyntaxKind.SymbolKeyword);
|
||||
}
|
||||
if (type.flags & TypeFlags.NonPrimitive) {
|
||||
throw new Error("Non primitive not implemented");
|
||||
return createKeywordTypeNode(SyntaxKind.ObjectKeyword);
|
||||
}
|
||||
if (type.flags & TypeFlags.TypeParameter && (type as TypeParameter).isThisType) {
|
||||
if (context.inObjectTypeLiteral) {
|
||||
|
||||
Reference in New Issue
Block a user