@fluidframework/core-interfaces
Advanced tools
Comparing version 2.0.0-dev-rc.5.0.0.272251 to 2.0.0-dev-rc.5.0.0.272889
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"extends": "../../../common/build/build-common/api-extractor-base.esm.primary.json" | ||
"extends": "../../../common/build/build-common/api-extractor-base.esm.current.json" | ||
} |
{ | ||
"name": "@fluidframework/core-interfaces", | ||
"version": "2.0.0-dev-rc.5.0.0.272251", | ||
"version": "2.0.0-dev-rc.5.0.0.272889", | ||
"description": "Fluid object interfaces", | ||
@@ -89,3 +89,3 @@ "homepage": "https://fluidframework.com", | ||
"check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", | ||
"check:format": "npm run check:prettier", | ||
"check:format": "npm run check:biome", | ||
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore", | ||
@@ -99,3 +99,3 @@ "ci:build": "npm run build:compile", | ||
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", | ||
"format": "npm run format:prettier", | ||
"format": "npm run format:biome", | ||
"format:biome": "biome check . --formatter-enabled=true --apply", | ||
@@ -102,0 +102,0 @@ "format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore", |
@@ -10,3 +10,10 @@ /*! | ||
*/ | ||
export type ConfigTypes = string | number | boolean | number[] | string[] | boolean[] | undefined; | ||
export type ConfigTypes = | ||
| string | ||
| number | ||
| boolean | ||
| number[] | ||
| string[] | ||
| boolean[] | ||
| undefined; | ||
@@ -13,0 +20,0 @@ /** |
@@ -174,267 +174,267 @@ /*! | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
(event: infer E9, listener: (...args: infer A9) => void); | ||
(event: infer E10, listener: (...args: infer A10) => void); | ||
(event: infer E11, listener: (...args: infer A11) => void); | ||
(event: infer E12, listener: (...args: infer A12) => void); | ||
(event: infer E13, listener: (...args: infer A13) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> & | ||
TransformedEvent<TThis, E9, A9> & | ||
TransformedEvent<TThis, E10, A10> & | ||
TransformedEvent<TThis, E11, A11> & | ||
TransformedEvent<TThis, E12, A12> & | ||
TransformedEvent<TThis, E13, A13> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
(event: infer E9, listener: (...args: infer A9) => void); | ||
(event: infer E10, listener: (...args: infer A10) => void); | ||
(event: infer E11, listener: (...args: infer A11) => void); | ||
(event: infer E12, listener: (...args: infer A12) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> & | ||
TransformedEvent<TThis, E9, A9> & | ||
TransformedEvent<TThis, E10, A10> & | ||
TransformedEvent<TThis, E11, A11> & | ||
TransformedEvent<TThis, E12, A12> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
(event: infer E9, listener: (...args: infer A9) => void); | ||
(event: infer E10, listener: (...args: infer A10) => void); | ||
(event: infer E11, listener: (...args: infer A11) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> & | ||
TransformedEvent<TThis, E9, A9> & | ||
TransformedEvent<TThis, E10, A10> & | ||
TransformedEvent<TThis, E11, A11> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
(event: infer E9, listener: (...args: infer A9) => void); | ||
(event: infer E10, listener: (...args: infer A10) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> & | ||
TransformedEvent<TThis, E9, A9> & | ||
TransformedEvent<TThis, E10, A10> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
(event: infer E9, listener: (...args: infer A9) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> & | ||
TransformedEvent<TThis, E9, A9> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & TransformedEvent<TThis, E1, A1> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> | ||
: // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
TransformedEvent<TThis, string, any[]>; | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
(event: infer E9, listener: (...args: infer A9) => void); | ||
(event: infer E10, listener: (...args: infer A10) => void); | ||
(event: infer E11, listener: (...args: infer A11) => void); | ||
(event: infer E12, listener: (...args: infer A12) => void); | ||
(event: infer E13, listener: (...args: infer A13) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> & | ||
TransformedEvent<TThis, E9, A9> & | ||
TransformedEvent<TThis, E10, A10> & | ||
TransformedEvent<TThis, E11, A11> & | ||
TransformedEvent<TThis, E12, A12> & | ||
TransformedEvent<TThis, E13, A13> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
(event: infer E9, listener: (...args: infer A9) => void); | ||
(event: infer E10, listener: (...args: infer A10) => void); | ||
(event: infer E11, listener: (...args: infer A11) => void); | ||
(event: infer E12, listener: (...args: infer A12) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> & | ||
TransformedEvent<TThis, E9, A9> & | ||
TransformedEvent<TThis, E10, A10> & | ||
TransformedEvent<TThis, E11, A11> & | ||
TransformedEvent<TThis, E12, A12> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
(event: infer E9, listener: (...args: infer A9) => void); | ||
(event: infer E10, listener: (...args: infer A10) => void); | ||
(event: infer E11, listener: (...args: infer A11) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> & | ||
TransformedEvent<TThis, E9, A9> & | ||
TransformedEvent<TThis, E10, A10> & | ||
TransformedEvent<TThis, E11, A11> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
(event: infer E9, listener: (...args: infer A9) => void); | ||
(event: infer E10, listener: (...args: infer A10) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> & | ||
TransformedEvent<TThis, E9, A9> & | ||
TransformedEvent<TThis, E10, A10> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
(event: infer E9, listener: (...args: infer A9) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> & | ||
TransformedEvent<TThis, E9, A9> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
(event: infer E8, listener: (...args: infer A8) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> & | ||
TransformedEvent<TThis, E8, A8> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
(event: infer E7, listener: (...args: infer A7) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> & | ||
TransformedEvent<TThis, E7, A7> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
(event: infer E6, listener: (...args: infer A6) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> & | ||
TransformedEvent<TThis, E6, A6> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
(event: infer E5, listener: (...args: infer A5) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> & | ||
TransformedEvent<TThis, E5, A5> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
(event: infer E4, listener: (...args: infer A4) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> & | ||
TransformedEvent<TThis, E4, A4> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
(event: infer E3, listener: (...args: infer A3) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> & | ||
TransformedEvent<TThis, E3, A3> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
(event: infer E2, listener: (...args: infer A2) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & | ||
TransformedEvent<TThis, E1, A1> & | ||
TransformedEvent<TThis, E2, A2> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
(event: infer E1, listener: (...args: infer A1) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> & TransformedEvent<TThis, E1, A1> | ||
: TEvent extends { | ||
(event: infer E0, listener: (...args: infer A0) => void); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(event: string, listener: (...args: any[]) => void); | ||
} | ||
? TransformedEvent<TThis, E0, A0> | ||
: // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
TransformedEvent<TThis, string, any[]>; |
@@ -35,8 +35,8 @@ /*! | ||
: number extends TProp | ||
? never // exclude indexers [key:string |number]: any | ||
: TProp extends keyof Required<T>[TProp] // TProp is a property of T, and T[TProp] | ||
? Required<T>[TProp] extends Required<Required<T>[TProp]>[TProp] // T[TProp] is the same type as T[TProp][TProp] | ||
? TProp | ||
: never | ||
: never; | ||
? never // exclude indexers [key:string |number]: any | ||
: TProp extends keyof Required<T>[TProp] // TProp is a property of T, and T[TProp] | ||
? Required<T>[TProp] extends Required<Required<T>[TProp]>[TProp] // T[TProp] is the same type as T[TProp][TProp] | ||
? TProp | ||
: never | ||
: never; | ||
@@ -43,0 +43,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
401690
3712