@typescript-eslint/types 8.46.1 → 8.46.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/ast-spec.d.ts +13 -5
- package/package.json +1 -1
|
@@ -1681,7 +1681,7 @@ export declare interface TSIntrinsicKeyword extends BaseNode {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
export declare interface TSLiteralType extends BaseNode {
|
|
1683
1683
|
type: AST_NODE_TYPES.TSLiteralType;
|
|
1684
|
-
literal: LiteralExpression |
|
|
1684
|
+
literal: Exclude<LiteralExpression, NullLiteral | RegExpLiteral> | UnaryExpressionMinus | UnaryExpressionPlus;
|
|
1685
1685
|
}
|
|
1686
1686
|
export declare interface TSMappedType extends BaseNode {
|
|
1687
1687
|
type: AST_NODE_TYPES.TSMappedType;
|
|
@@ -2031,15 +2031,23 @@ export declare interface TSVoidKeyword extends BaseNode {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
export declare type TypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature | TSMethodSignature | TSPropertySignature;
|
|
2033
2033
|
export declare type TypeNode = TSAbstractKeyword | TSAnyKeyword | TSArrayType | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSDeclareKeyword | TSExportKeyword | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSNamedTupleMember | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword;
|
|
2034
|
-
export declare
|
|
2035
|
-
type: AST_NODE_TYPES.UnaryExpression;
|
|
2036
|
-
operator: '!' | '+' | '-' | 'delete' | 'typeof' | 'void' | '~';
|
|
2037
|
-
}
|
|
2034
|
+
export declare type UnaryExpression = UnaryExpressionBitwiseNot | UnaryExpressionDelete | UnaryExpressionMinus | UnaryExpressionNot | UnaryExpressionPlus | UnaryExpressionTypeof | UnaryExpressionVoid;
|
|
2038
2035
|
declare interface UnaryExpressionBase extends BaseNode {
|
|
2039
2036
|
argument: Expression;
|
|
2040
2037
|
operator: string;
|
|
2041
2038
|
prefix: boolean;
|
|
2042
2039
|
}
|
|
2040
|
+
export declare type UnaryExpressionBitwiseNot = UnaryExpressionSpecific<'~'>;
|
|
2041
|
+
export declare type UnaryExpressionDelete = UnaryExpressionSpecific<'delete'>;
|
|
2042
|
+
export declare type UnaryExpressionMinus = UnaryExpressionSpecific<'-'>;
|
|
2043
|
+
export declare type UnaryExpressionNot = UnaryExpressionSpecific<'!'>;
|
|
2044
|
+
export declare type UnaryExpressionPlus = UnaryExpressionSpecific<'+'>;
|
|
2045
|
+
declare interface UnaryExpressionSpecific<T extends string> extends UnaryExpressionBase {
|
|
2046
|
+
type: AST_NODE_TYPES.UnaryExpression;
|
|
2047
|
+
operator: T;
|
|
2048
|
+
}
|
|
2049
|
+
export declare type UnaryExpressionTypeof = UnaryExpressionSpecific<'typeof'>;
|
|
2050
|
+
export declare type UnaryExpressionVoid = UnaryExpressionSpecific<'void'>;
|
|
2043
2051
|
export declare interface UpdateExpression extends UnaryExpressionBase {
|
|
2044
2052
|
type: AST_NODE_TYPES.UpdateExpression;
|
|
2045
2053
|
operator: '++' | '--';
|