Module ModelsAsData
Provides classes for contributing a model, or using the interpreted results of a model represented as data.
- Use the
ModelInput
module to contribute new models. - Use the
ModelOutput
module to access the model results in terms of API nodes.
The package name refers to an NPM package name or a path within a package name such as lodash/extend
.
The string global
refers to the global object (whether it came from the global
package or not).
A (package, type)
tuple may refer to the exported type named type
from the NPM package package
.
For example, (express, Request)
would match a parameter below due to the type annotation:
import * as express from 'express';
export function handler(req: express.Request) { ... }
Import path
import semmle.javascript.frameworks.data.ModelsAsData
Modules
ModelExport | Module for exporting type models for a given set of nodes in the API graph. |
Module signatures
ModelExportSig | Specifies which parts of the API graph to export in |
Aliases
ModelInput | Module containing hooks for providing input data to be interpreted as a model. |
ModelOutput | Module providing access to the imported models in terms of API graph nodes. |