mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
JS: Update type usage in Nest library model
This commit is contained in:
@@ -119,6 +119,19 @@ class TypeNameBindingNode extends NameResolution::Node {
|
||||
DataFlow::ClassNode getAnUnderlyingClass() {
|
||||
UnderlyingTypes::nodeHasUnderlyingClassType(this, result)
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if this type contains `string` or `any`, possibly wrapped in a promise.
|
||||
*/
|
||||
predicate hasUnderlyingStringOrAnyType() { TypeResolution::hasUnderlyingStringOrAnyType(this) }
|
||||
|
||||
/**
|
||||
* Holds if this refers to a type that is considered untaintable (if actually enforced at runtime).
|
||||
*
|
||||
* Specifically, the types `number`, `boolean`, `null`, `undefined`, `void`, `never`, as well as literal types (`"foo"`)
|
||||
* and enums and enum members have this property.
|
||||
*/
|
||||
predicate isSanitizingPrimitiveType() { TypeResolution::isSanitizingPrimitiveType(this) }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user