Fix grammar issues

This commit is contained in:
barsdeveloper
2023-09-22 23:03:09 +02:00
parent fdd86ce5de
commit 6f276856d6
2 changed files with 2 additions and 2 deletions

View File

@@ -271,7 +271,7 @@ export default class Utility {
: new /** @type {EntityConstructor} */(targetType)(value)
}
if (value instanceof Boolean || value instanceof Number || value instanceof String) {
value = value.valueOf() // Get the relative primitive value
value = /** @type {AnyValue} */(value.valueOf()) // Get the relative primitive value
}
return value
}

View File

@@ -245,7 +245,7 @@ export default class Grammar {
/**
* @template {IEntity} T
* @param {AnyConstructor<T> & EntityConstructor} entityType
* @param {(new (...args: any) => T) & EntityConstructor} entityType
* @param {Boolean | Number} acceptUnknownKeys Number to specify the limit or true, to let it be a reasonable value
* @returns {Parsimmon.Parser<T>}
*/