You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@typescript-eslint/type-utils

Package Overview
Dependencies
4
Maintainers
2
Versions
1979
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.13.2-alpha.0 to 7.13.2-alpha.1

33

dist/builtinSymbolLikes.d.ts
import * as ts from 'typescript';
/**
* class Foo extends Promise<number> {}
* Foo.reject
* ^ PromiseLike
* @example
* ```ts
* class DerivedClass extends Promise<number> {}
* DerivedClass.reject
* // ^ PromiseLike
* ```
*/
export declare function isPromiseLike(program: ts.Program, type: ts.Type): boolean;
/**
* const foo = Promise
* foo.reject
* ^ PromiseConstructorLike
* @example
* ```ts
* const value = Promise
* value.reject
* // ^ PromiseConstructorLike
* ```
*/
export declare function isPromiseConstructorLike(program: ts.Program, type: ts.Type): boolean;
/**
* @example
* ```ts
* class Foo extends Error {}
* new Foo()
* ^ ErrorLike
* // ^ ErrorLike
* ```
*/
export declare function isErrorLike(program: ts.Program, type: ts.Type): boolean;
/**
* @example
* ```ts
* type T = Readonly<Error>
* ^ ReadonlyErrorLike
* // ^ ReadonlyErrorLike
* ```
*/
export declare function isReadonlyErrorLike(program: ts.Program, type: ts.Type): boolean;
/**
* @example
* ```ts
* type T = Readonly<{ foo: 'bar' }>
* ^ ReadonlyTypeLike
* // ^ ReadonlyTypeLike
* ```
*/

@@ -29,0 +44,0 @@ export declare function isReadonlyTypeLike(program: ts.Program, type: ts.Type, predicate?: (subType: ts.Type & {

@@ -30,5 +30,8 @@ "use strict";

/**
* class Foo extends Promise<number> {}
* Foo.reject
* ^ PromiseLike
* @example
* ```ts
* class DerivedClass extends Promise<number> {}
* DerivedClass.reject
* // ^ PromiseLike
* ```
*/

@@ -40,5 +43,8 @@ function isPromiseLike(program, type) {

/**
* const foo = Promise
* foo.reject
* ^ PromiseConstructorLike
* @example
* ```ts
* const value = Promise
* value.reject
* // ^ PromiseConstructorLike
* ```
*/

@@ -50,5 +56,8 @@ function isPromiseConstructorLike(program, type) {

/**
* @example
* ```ts
* class Foo extends Error {}
* new Foo()
* ^ ErrorLike
* // ^ ErrorLike
* ```
*/

@@ -60,4 +69,7 @@ function isErrorLike(program, type) {

/**
* @example
* ```ts
* type T = Readonly<Error>
* ^ ReadonlyErrorLike
* // ^ ReadonlyErrorLike
* ```
*/

@@ -73,4 +85,7 @@ function isReadonlyErrorLike(program, type) {

/**
* @example
* ```ts
* type T = Readonly<{ foo: 'bar' }>
* ^ ReadonlyTypeLike
* // ^ ReadonlyTypeLike
* ```
*/

@@ -77,0 +92,0 @@ function isReadonlyTypeLike(program, type, predicate) {

{
"name": "@typescript-eslint/type-utils",
"version": "7.13.2-alpha.0",
"version": "7.13.2-alpha.1",
"description": "Type utilities for working with TypeScript + ESLint together",

@@ -49,4 +49,4 @@ "files": [

"dependencies": {
"@typescript-eslint/typescript-estree": "7.13.2-alpha.0",
"@typescript-eslint/utils": "7.13.2-alpha.0",
"@typescript-eslint/typescript-estree": "7.13.2-alpha.1",
"@typescript-eslint/utils": "7.13.2-alpha.1",
"debug": "^4.3.4",

@@ -57,3 +57,3 @@ "ts-api-utils": "^1.3.0"

"@jest/types": "29.6.3",
"@typescript-eslint/parser": "7.13.2-alpha.0",
"@typescript-eslint/parser": "7.13.2-alpha.1",
"ajv": "^6.12.6",

@@ -60,0 +60,0 @@ "downlevel-dts": "*",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc