Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Apr 20, 2024
1 parent aa8fe02 commit 45e4021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NodeParser/MappedTypeNodeParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class MappedTypeNodeParser implements SubNodeParser {

protected createSubContext(
node: ts.MappedTypeNode,
key: LiteralType | StringType,
key: LiteralType | StringType | NumberType,
parentContext: Context,
): Context {
const subContext = new Context(node);
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/typeKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function getTypeKeys(type: BaseType): LiteralType[] {
return [];
}

export function getTypeByKey(type: BaseType, index: LiteralType | StringType): BaseType | undefined {
export function getTypeByKey(type: BaseType, index: LiteralType | StringType | NumberType): BaseType | undefined {
type = derefType(type);

if (type instanceof IntersectionType || type instanceof UnionType) {
Expand Down

0 comments on commit 45e4021

Please sign in to comment.