📄 ImplicitLibVariable¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🧱 Classes | 1 |
| 📦 Imports | 3 |
| 📐 Interfaces | 2 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/scope-manager/src/variable/ImplicitLibVariable.ts
📦 Imports¶
| Name | Source |
|---|---|
Scope |
../scope |
Variable |
./Variable |
ESLintScopeVariable |
./ESLintScopeVariable |
Classes¶
ImplicitLibVariable¶
An variable implicitly defined by the TS Lib
Extends: ESLintScopeVariable
Implements: Variable
Class Code
export class ImplicitLibVariable
extends ESLintScopeVariable
implements Variable
{
/**
* `true` if the variable is valid in a type context, false otherwise
*/
public readonly isTypeVariable: boolean;
/**
* `true` if the variable is valid in a value context, false otherwise
*/
public readonly isValueVariable: boolean;
public constructor(
scope: Scope,
name: string,
{
eslintImplicitGlobalSetting,
isTypeVariable,
isValueVariable,
writeable,
}: ImplicitLibVariableOptions,
) {
super(name, scope);
this.isTypeVariable = isTypeVariable ?? false;
this.isValueVariable = isValueVariable ?? false;
this.writeable = writeable ?? false;
this.eslintImplicitGlobalSetting =
eslintImplicitGlobalSetting ?? 'readonly';
}
}
Interfaces¶
ImplicitLibVariableOptions¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
eslintImplicitGlobalSetting |
ESLintScopeVariable['eslintImplicitGlobalSetting'] |
✓ | not shown |
isTypeVariable |
boolean |
✓ | not shown |
isValueVariable |
boolean |
✓ | not shown |
writeable |
boolean |
✓ | not shown |
LibDefinition¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
libs |
readonly LibDefinition[] |
✗ | not shown |
variables |
readonly [string, ImplicitLibVariableOptions][] |
✗ | not shown |
Generated by Syntax Scribe