@typescript-eslint/utils 8.66.0 → 8.66.1-alpha.1

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.
@@ -6,26 +6,26 @@ type PunctuatorTokenWithValue<Value extends string> = {
6
6
  } & TSESTree.PunctuatorToken;
7
7
  type IsPunctuatorTokenWithValueFunction<Value extends string> = IsSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
8
8
  type IsNotPunctuatorTokenWithValueFunction<Value extends string> = IsNotSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
9
- export declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">;
10
- export declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">;
11
- export declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">;
12
- export declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">;
13
- export declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">;
14
- export declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">;
15
- export declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">;
16
- export declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">;
17
- export declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">;
18
- export declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">;
19
- export declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">;
20
- export declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">;
9
+ export declare const isArrowToken: IsPunctuatorTokenWithValueFunction<'=>'>;
10
+ export declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<'=>'>;
11
+ export declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<'}'>;
12
+ export declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<'}'>;
13
+ export declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<']'>;
14
+ export declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<']'>;
15
+ export declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<')'>;
16
+ export declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<')'>;
17
+ export declare const isColonToken: IsPunctuatorTokenWithValueFunction<':'>;
18
+ export declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<':'>;
19
+ export declare const isCommaToken: IsPunctuatorTokenWithValueFunction<','>;
20
+ export declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<','>;
21
21
  export declare const isCommentToken: IsSpecificTokenFunction<TSESTree.Comment>;
22
22
  export declare const isNotCommentToken: IsNotSpecificTokenFunction<TSESTree.Comment>;
23
- export declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">;
24
- export declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">;
25
- export declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">;
26
- export declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">;
27
- export declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">;
28
- export declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">;
29
- export declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">;
30
- export declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">;
23
+ export declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<'{'>;
24
+ export declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<'{'>;
25
+ export declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<'['>;
26
+ export declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<'['>;
27
+ export declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<'('>;
28
+ export declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<'('>;
29
+ export declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<';'>;
30
+ export declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<';'>;
31
31
  export {};
@@ -35,7 +35,7 @@ export declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefin
35
35
  /**
36
36
  * Checks if a node is a constructor method.
37
37
  */
38
- export declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is Partial<TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName> & (TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName);
38
+ export declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is (Partial<TSESTree.MethodDefinitionComputedName> & TSESTree.MethodDefinitionComputedName) | (Partial<TSESTree.MethodDefinitionNonComputedName> & TSESTree.MethodDefinitionNonComputedName);
39
39
  /**
40
40
  * Checks if a node is a setter method.
41
41
  */
@@ -2,7 +2,7 @@
2
2
  * A set of common reasons for calling nullThrows
3
3
  */
4
4
  export declare const NullThrowsReasons: {
5
- readonly MissingParent: "Expected node to have a parent.";
5
+ readonly MissingParent: 'Expected node to have a parent.';
6
6
  readonly MissingToken: (token: string, thing: string) => string;
7
7
  };
8
8
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/utils",
3
- "version": "8.66.0",
3
+ "version": "8.66.1-alpha.1",
4
4
  "description": "Utilities for working with TypeScript + ESLint together",
5
5
  "files": [
6
6
  "dist",
@@ -51,16 +51,16 @@
51
51
  ],
52
52
  "dependencies": {
53
53
  "@eslint-community/eslint-utils": "^4.9.1",
54
- "@typescript-eslint/scope-manager": "8.66.0",
55
- "@typescript-eslint/types": "8.66.0",
56
- "@typescript-eslint/typescript-estree": "8.66.0"
54
+ "@typescript-eslint/scope-manager": "8.66.1-alpha.1",
55
+ "@typescript-eslint/typescript-estree": "8.66.1-alpha.1",
56
+ "@typescript-eslint/types": "8.66.1-alpha.1"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
60
60
  "typescript": ">=4.8.4 <6.1.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@typescript/native-preview": "7.0.0-dev.20260518.1",
63
+ "@typescript/native": "npm:typescript@^7.0.2",
64
64
  "@vitest/coverage-v8": "^4.0.18",
65
65
  "eslint": "^10.0.0",
66
66
  "rimraf": "^5.0.10",