mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
11 lines
No EOL
518 B
TypeScript
11 lines
No EOL
518 B
TypeScript
import { AExtend, BExtend, Type, CImplements1, CImplements2, CType, ThisType1, ThisType2, Unused } from 'mod';
|
|
|
|
export interface A extends AExtend<Type> {}
|
|
export class B extends BExtend<Type> {}
|
|
export class C implements CImplements1<CType>, CImplements2<CType> {}
|
|
export function foo(this: ThisType1): void {}
|
|
export const bar: (this: ThisType2) => void = function() {}
|
|
|
|
import { type InferType1, type InferType2 } from 'infer';
|
|
|
|
export type F<X extends InferType1> = X extends infer U extends InferType2 ? U : never |