Hey@ahejlsberg, the results of running the DT tests are ready. There were interesting changes: Branch only errors:Package: reflexbox Error: Error: Errors in typescript@local for external dependencies:node_modules/@emotion/styled/types/base.d.ts(127,22): error TS2344: Type 'ForwardedProps' does not satisfy the constraint 'keyof PropsOf<C>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof PropsOf<C>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'ForwardedProps' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'ForwardedProps' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'ForwardedProps' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'ForwardedProps' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'ForwardedProps' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'never'.node_modules/@emotion/styled/types/base.d.ts(157,22): error TS2344: Type 'ForwardedProps' does not satisfy the constraint 'keyof PropsOf<C>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof PropsOf<C>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...> & keyof (C extends MemoExoticComponent<...> | LazyExoticComponent<...> ? ReactManagedAttributes<...> : ReactManagedAttributes<...>)'. Type 'ForwardedProps' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...> & keyof (C extends MemoExoticComponent<...> | LazyExoticComponent<...> ? ReactManagedAttributes<...> : ReactManagedAttributes<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...> & keyof (C extends MemoExoticComponent<...> | LazyExoticComponent<...> ? ReactManagedAttributes<...> : ReactManagedAttributes<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'ForwardedProps' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'ForwardedProps' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'ForwardedProps' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'ForwardedProps' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'never'. at testTypesVersion (/home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/index.js:194:15) at async runTests (/home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/index.js:151:9)
Package: knex-cleaner Error: Error: Errors in typescript@local for external dependencies:node_modules/knex/types/index.d.ts(1240,50): error TS2344: Type 'ResolveTableType<TRecord, "base">' does not satisfy the constraint '{}'. Type 'unknown' is not assignable to type '{}'.node_modules/knex/types/index.d.ts(1255,50): error TS2344: Type 'ResolveTableType<TRecord, "base">' does not satisfy the constraint '{}'. at testTypesVersion (/home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/index.js:194:15) at async runTests (/home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/index.js:151:9)
Package: mui-datatables Error: Error: Errors in typescript@local for external dependencies:node_modules/@emotion/styled/types/base.d.ts(127,22): error TS2344: Type 'ForwardedProps' does not satisfy the constraint 'keyof PropsOf<C>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof PropsOf<C>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'ForwardedProps' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'ForwardedProps' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'ForwardedProps' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'ForwardedProps' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'ForwardedProps' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'never'.node_modules/@emotion/styled/types/base.d.ts(157,22): error TS2344: Type 'ForwardedProps' does not satisfy the constraint 'keyof PropsOf<C>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof PropsOf<C>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...> & keyof (C extends MemoExoticComponent<...> | LazyExoticComponent<...> ? ReactManagedAttributes<...> : ReactManagedAttributes<...>)'. Type 'ForwardedProps' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...> & keyof (C extends MemoExoticComponent<...> | LazyExoticComponent<...> ? ReactManagedAttributes<...> : ReactManagedAttributes<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...> & keyof (C extends MemoExoticComponent<...> | LazyExoticComponent<...> ? ReactManagedAttributes<...> : ReactManagedAttributes<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'ForwardedProps' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'ForwardedProps' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'ForwardedProps' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'ForwardedProps' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'keyof ComponentProps<C> & string' is not assignable to type 'never'.node_modules/@mui/styled-engine/index.d.ts(160,22): error TS2344: Type 'ForwardedProps' does not satisfy the constraint 'keyof PropsOf<C>'. Type 'keyof ComponentProps<C>' is not assignable to type 'keyof PropsOf<C>'. Type 'string | number | symbol' is not assignable to type 'keyof PropsOf<C>'. Type 'string' is not assignable to type 'keyof PropsOf<C>'. Type 'string' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'keyof ComponentProps<C>' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'ForwardedProps' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'keyof ComponentProps<C>' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'string | number | symbol' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'string' is not assignable to type 'keyof ComponentProps<C> & keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>> & keyof Defaultize<...> & keyof Defaultize<...>'. Type 'string' is not assignable to type 'keyof ComponentProps<C>'. Type 'keyof ComponentProps<C>' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'ForwardedProps' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'keyof ComponentProps<C>' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'string | number | symbol' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'string' is not assignable to type 'keyof MergePropTypes<ComponentProps<C>, InferProps<WeakValidationMap<ComponentProps<C>> | undefined>>'. Type 'string' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C>' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'ForwardedProps' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C>' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'string | number | symbol' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'string' is not assignable to type 'keyof (IsExactlyAny<ComponentProps<C>> extends true ? InferProps<WeakValidationMap<ComponentProps<C>> | undefined> : string extends keyof ComponentProps<...> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C>' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'ForwardedProps' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'keyof ComponentProps<C>' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'string | number | symbol' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined> & keyof (string extends keyof ComponentProps<C> ? ComponentProps<...> : Pick<...> & ... 1 more ... & Pick<...>)'. Type 'string' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'keyof ComponentProps<C>' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'ForwardedProps' is not assignable to type 'RequiredKeys<WeakValidationMap<ComponentProps<C>> | undefined>'. Type 'keyof ComponentProps<C>' is not assignable to type 'never'. Type 'string | number | symbol' is not assignable to type 'never'. Type 'string' is not assignable to type 'never'. at testTypesVersion (/home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/index.js:194:15) at async runTests (/home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/index.js:151:9)
Package: knex-db-manager Error: Error: Errors in typescript@local for external dependencies:node_modules/knex/types/index.d.ts(1091,50): error TS2344: Type 'ResolveTableType<TRecord, "base">' does not satisfy the constraint '{}'. Type 'unknown' is not assignable to type '{}'.node_modules/knex/types/index.d.ts(1103,50): error TS2344: Type 'ResolveTableType<TRecord, "base">' does not satisfy the constraint '{}'. at testTypesVersion (/home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/index.js:194:15) at async runTests (/home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/index.js:151:9)
You can check the log here. |
Uh oh!
There was an error while loading.Please reload this page.
With this PR we compute more accurate constraints for distributive conditional types applied to constrained type variables. For example:
Previously, we'd obtain the constraint of
IsArray<U>by applying the distributive conditional type to the constraint ofU, which resolves tofalse(becauseobjectdoesn't extendany[]). But really, it ought to beboolean(i.e.true | false) since clearly something constrained toobjectboth could or could not be an array.A type variable represents any possible type within its constraint. So, given a type parameter
Twith the constraintC, the constraint ofT extends X ? A : BisAwhenCis known to always extendX,BwhenCis known to never extendX, orA | BwhenCpossibly extendsX.We previously didn't consider the third possibility. With this PR, we choose the third outcome when
Cis not assignable toX, butX(or, ifXis a union type, some constituent ofX) is assignable toC.Fixes#30152.