documentation for new feature

This commit is contained in:
Stephan Brandauer
2022-04-14 15:03:21 +02:00
parent 6a786a2000
commit fc9487d74d

View File

@@ -411,7 +411,22 @@ class EnclosingFunctionBody extends EndpointFeature, TEnclosingFunctionBody {
}
}
/** The feature for the imports defined in the file containing an endpoint. */
/**
* The feature for the imports defined in the file containing an endpoint.
*
* ### Example
*
* ```javascript
* import { findOne } from 'mongoose';
* import * as _ from 'lodash';
* const pg = require('pg');
*
* // ...
* ```
*
* In this file, all endpoints will have the value `lodash mongoose pg` for the feature `fileImports`.
*
* */
class FileImports extends EndpointFeature, TFileImports {
override string getName() { result = "fileImports" }