diff --git a/src/NodeParser/IndexedAccessTypeNodeParser.ts b/src/NodeParser/IndexedAccessTypeNodeParser.ts index 507fd55d6..d7a481350 100644 --- a/src/NodeParser/IndexedAccessTypeNodeParser.ts +++ b/src/NodeParser/IndexedAccessTypeNodeParser.ts @@ -63,7 +63,7 @@ export class IndexedAccessTypeNodeParser implements SubNodeParser { if (!(type instanceof LiteralType || type instanceof StringType || type instanceof NumberType)) { throw new LogicError( node, - `Unexpected type "${type?.getId()}" (expected "LiteralType.js" or "StringType.js" or "NumberType.js")`, + `Unexpected type "${type.getId()}" (expected "LiteralType.js" or "StringType.js" or "NumberType.js")`, ); }