repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/generic/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/generic/input.ts
<T>(a: T): T => a;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-like-in-conditional-2/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-like-in-conditional-2/input.ts
0 ? v => (sum = v) : v => 0;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic-after-await/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic-after-await/input.ts
async () => { await null; async <T>() => null; };
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/default-parameter-values/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/default-parameter-values/input.ts
(x: number = 0) => 0;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/annotated/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/annotated/input.ts
(x: number): number => x;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic-false-positive/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic-false-positive/input.ts
async < 1; async<T>() == 0;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-like-in-conditional-3/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-like-in-conditional-3/input.ts
0 ? v => (sum = v) : v => 0 : v => 0;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-like-in-conditional-4/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-like-in-conditional-4/input.ts
0 ? v => (...rest) : v => 0 : v => 0;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/destructuring-with-annotation-newline/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/destructuring-with-annotation-newline/input.ts
( { a, b }: T, ): T => {};
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/async/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/async/input.ts
async (x?: number): any => x;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/predicate-types/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/predicate-types/input.ts
(x: any): x is string => true;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/async-arrow-function-after-binary-operator/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/async-arrow-function-after-binary-operator/input.ts
4 + async<number>() => 2
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-function-with-newline/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-function-with-newline/input.ts
async (f) : t => { }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/optional-parameter/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/optional-parameter/input.ts
(x?: number): any => x; ((k?) => k + 1)();
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-like-in-conditional-1/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-like-in-conditional-1/input.ts
// https://github.com/babel/babel/issues/11038 0 ? v => (sum += v) : v => 0;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic-tokens-true/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic-tokens-true/input.ts
async <T>(a: T): T => a;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/generic-tsx/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/generic-tsx/input.ts
// Generics without trailing comma are disallowed in JSX <T>(a: T): T => a; <T,>(a: T): T => a;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/async-rest-optional-parameter/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/async-rest-optional-parameter/input.ts
async(...args?: any[]) : any => {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/arrow-function/async-await-null/input.ts
packages/babel-parser/test/fixtures/typescript/arrow-function/async-await-null/input.ts
async <T>() => await null;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/class-heritage/input.ts
packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/class-heritage/input.ts
(class extends f<<T>(v: T) => void> {});
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/interface-heritage/input.ts
packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/interface-heritage/input.ts
interface I extends f<<T>(v: T) => void> {};
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/new-expression/input.ts
packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/new-expression/input.ts
new f<<T>(v: T) => void>();
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/decorator-legacy-call-expression/input.ts
packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/decorator-legacy-call-expression/input.ts
(@f<<T>(v: T) => void>() class {});
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/call-expression/input.ts
packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/call-expression/input.ts
f<<T>(v: T) => void>();
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/after-bit-shift/input.ts
packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/after-bit-shift/input.ts
f<<<T>(x)
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/jsx-opening-element/input.tsx
packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/jsx-opening-element/input.tsx
<Component<<T>(v: T) => void> />
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/decorator-call-expression/input.ts
packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/decorator-call-expression/input.ts
(@f<<T>(v: T) => void>() class {});
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/type-arguments-like/input.ts
packages/babel-parser/test/fixtures/typescript/type-arguments-bit-shift-left-like/type-arguments-like/input.ts
f<< T > (()=>T) > T
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/dts/valid-optional-pattern/input.ts
packages/babel-parser/test/fixtures/typescript/dts/valid-optional-pattern/input.ts
function f([]?): any;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/dts/no-initializer/input.ts
packages/babel-parser/test/fixtures/typescript/dts/no-initializer/input.ts
const x: number;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/dts/invalid-class-implementation/input.ts
packages/babel-parser/test/fixtures/typescript/dts/invalid-class-implementation/input.ts
function foo(): any {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/dts/valid-trailing-comma-for-rest/input.ts
packages/babel-parser/test/fixtures/typescript/dts/valid-trailing-comma-for-rest/input.ts
function foo(...args: any[], );
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/dts/invalid-class-initializer/input.ts
packages/babel-parser/test/fixtures/typescript/dts/invalid-class-initializer/input.ts
class Foo { foo = 3; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/export-type/input.ts
packages/babel-parser/test/fixtures/typescript/export/export-type/input.ts
type A = 2; export type { A };
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/export-value-declaration/input.ts
packages/babel-parser/test/fixtures/typescript/export/export-value-declaration/input.ts
export var a; export function b() {} export class C {} export enum D {} export namespace E {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/internal-comments/input.ts
packages/babel-parser/test/fixtures/typescript/export/internal-comments/input.ts
/*1*/ export /*2*/ { /*3*/ A /*4*/, /*5*/ B /*6*/ as /*7*/ C /*8*/ } /*9*/ from /*10*/ "foo"; /*1*/ export /*2*/ * /*3*/ from /*4*/ "foo"
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/export-type-star-from/input.ts
packages/babel-parser/test/fixtures/typescript/export/export-type-star-from/input.ts
export type * from './mod'; export type * as ns from './mod'; // Note: TSC doesn't support string module specifiers yet, // but it's easier for us to support them than not. export type * as "ns2" from './mod';
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/export-type-declaration/input.ts
packages/babel-parser/test/fixtures/typescript/export/export-type-declaration/input.ts
export type A = 2; export interface B {} export declare function a(): string; export declare var b: string;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/equals-in-unambiguous/input.ts
packages/babel-parser/test/fixtures/typescript/export/equals-in-unambiguous/input.ts
export = f;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/declare-invalid/input.ts
packages/babel-parser/test/fixtures/typescript/export/declare-invalid/input.ts
export declare foo;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/as-namespace/input.ts
packages/babel-parser/test/fixtures/typescript/export/as-namespace/input.ts
export as namespace A;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/double-declare/input.ts
packages/babel-parser/test/fixtures/typescript/export/double-declare/input.ts
export declare declare var name;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/equals-in-script/input.ts
packages/babel-parser/test/fixtures/typescript/export/equals-in-script/input.ts
export = f;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/export-type-from/input.ts
packages/babel-parser/test/fixtures/typescript/export/export-type-from/input.ts
export type { T } from './mod';
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/equals/input.ts
packages/babel-parser/test/fixtures/typescript/export/equals/input.ts
export = f;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/declare/input.ts
packages/babel-parser/test/fixtures/typescript/export/declare/input.ts
export declare const x: number; export declare function f(): void; export declare class C {} export declare interface I {} export declare type T = number; export declare module M {} export declare namespace N {} export declare enum foo {} export declare var bar: string; export declare var _bar;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/export/nested-same-name/input.ts
packages/babel-parser/test/fixtures/typescript/export/nested-same-name/input.ts
export const x = 0; export namespace N { export const x = 1; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/invalid-namespace-await-using/input.ts
packages/babel-parser/test/fixtures/typescript/declare/invalid-namespace-await-using/input.ts
declare namespace invalid_namespace_var { await using A; await using A1 = 0; await using A2: number = 0; await using B, C; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/interface-new-line/input.ts
packages/babel-parser/test/fixtures/typescript/declare/interface-new-line/input.ts
declare interface I {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/pattern-parameters/input.ts
packages/babel-parser/test/fixtures/typescript/declare/pattern-parameters/input.ts
declare interface B { foo([]?): void; bar({}, []?): any; baz(a: string, b: number, []?): void; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/invalid-using-declaration-with-initializer/input.ts
packages/babel-parser/test/fixtures/typescript/declare/invalid-using-declaration-with-initializer/input.ts
declare using basic = null;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/interface/input.ts
packages/babel-parser/test/fixtures/typescript/declare/interface/input.ts
declare interface I {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/eval-dts/input.ts
packages/babel-parser/test/fixtures/typescript/declare/eval-dts/input.ts
// @filename: /a.d.ts declare global { export namespace ns { export function eval(): void; export function arguments(): void; } } declare function eval(): void; declare function arguments(): void; export {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/var/input.ts
packages/babel-parser/test/fixtures/typescript/declare/var/input.ts
declare var x; declare var x: any;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/module-class/input.ts
packages/babel-parser/test/fixtures/typescript/declare/module-class/input.ts
declare module m { class C { field = "field"; } }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/destructure-new-line/input.ts
packages/babel-parser/test/fixtures/typescript/declare/destructure-new-line/input.ts
declare const { x, y }: { x: number, y: number };
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/var-new-line/input.ts
packages/babel-parser/test/fixtures/typescript/declare/var-new-line/input.ts
declare var x; declare var x: any;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/destructure/input.ts
packages/babel-parser/test/fixtures/typescript/declare/destructure/input.ts
declare const { x, y }: { x: number, y: number };
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/module-function/input.ts
packages/babel-parser/test/fixtures/typescript/declare/module-function/input.ts
declare module m { function foo() {} }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/let/input.ts
packages/babel-parser/test/fixtures/typescript/declare/let/input.ts
declare let x;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/valid-namespace-var/input.ts
packages/babel-parser/test/fixtures/typescript/declare/valid-namespace-var/input.ts
declare namespace valid_namespace_var { var A; let B; const C; const C1 = 0; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/const-new-line/input.ts
packages/babel-parser/test/fixtures/typescript/declare/const-new-line/input.ts
declare const x: number = 10, y: string = "something";
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/invalid-using-declaration/input.ts
packages/babel-parser/test/fixtures/typescript/declare/invalid-using-declaration/input.ts
declare using basic;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/invalid-namespace-using/input.ts
packages/babel-parser/test/fixtures/typescript/declare/invalid-namespace-using/input.ts
declare namespace invalid_namespace_var { using A; using A1 = 0; using A2: number = 0; using B, C; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/eval/input.ts
packages/babel-parser/test/fixtures/typescript/declare/eval/input.ts
declare global { export namespace ns { export function eval(): void; export function arguments(): void; } } declare function eval(): void; declare function arguments(): void; export {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/let-new-line/input.ts
packages/babel-parser/test/fixtures/typescript/declare/let-new-line/input.ts
declare let x;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/invalid-await-using-declaration-with-initializer/input.ts
packages/babel-parser/test/fixtures/typescript/declare/invalid-await-using-declaration-with-initializer/input.ts
declare await using basic = null;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/function-rest-trailing-comma/input.ts
packages/babel-parser/test/fixtures/typescript/declare/function-rest-trailing-comma/input.ts
declare function foo(...args: any[], )
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/namespace-function/input.ts
packages/babel-parser/test/fixtures/typescript/declare/namespace-function/input.ts
declare namespace n { function foo() {} }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/function/input.ts
packages/babel-parser/test/fixtures/typescript/declare/function/input.ts
declare function foo() {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/const/input.ts
packages/babel-parser/test/fixtures/typescript/declare/const/input.ts
declare const x: number, y: string;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/invalid-namespace-var/input.ts
packages/babel-parser/test/fixtures/typescript/declare/invalid-namespace-var/input.ts
declare namespace invalid_namespace_var { var A = 0; var A1: number = 0; let B = 0; let B1: number = 0; const C: number = 0; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/invalid-await-using-declaration/input.ts
packages/babel-parser/test/fixtures/typescript/declare/invalid-await-using-declaration/input.ts
declare await using basic;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/declare/namespace-class/input.ts
packages/babel-parser/test/fixtures/typescript/declare/namespace-class/input.ts
declare namespace m { class C { field = "field"; } }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/parameter-properties/input.ts
packages/babel-parser/test/fixtures/typescript/function/parameter-properties/input.ts
function foo( readonly r, public pu: number, protected po?, private pi?: number, public readonly pur, readonly x = 0, public y?: number = 0 ) {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/getter-setter/input.ts
packages/babel-parser/test/fixtures/typescript/function/getter-setter/input.ts
const g = { get m(this: {}) {} }; const s = { set m(this: {}, value) {} };
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/declare-pattern-parameters/input.ts
packages/babel-parser/test/fixtures/typescript/function/declare-pattern-parameters/input.ts
declare function f([]?, {})
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/annotated/input.ts
packages/babel-parser/test/fixtures/typescript/function/annotated/input.ts
function f<T>(x?: T): T {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/empty-type-parameters/input.ts
packages/babel-parser/test/fixtures/typescript/function/empty-type-parameters/input.ts
function foo<>() {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/predicate-types/input.ts
packages/babel-parser/test/fixtures/typescript/function/predicate-types/input.ts
function f(x: any): x is boolean {} (function(x: any): x is boolean {})
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/anonymous/input.ts
packages/babel-parser/test/fixtures/typescript/function/anonymous/input.ts
const f = function<T>(x?: T): T {};
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/export-default/input.ts
packages/babel-parser/test/fixtures/typescript/function/export-default/input.ts
export default function(x?: number): void;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/pattern-optional-parameters-arrow/input.ts
packages/babel-parser/test/fixtures/typescript/function/pattern-optional-parameters-arrow/input.ts
([]?, {}) => {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/declare/input.ts
packages/babel-parser/test/fixtures/typescript/function/declare/input.ts
declare function f(): void; declare function f<T>(): T;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/pattern-optional-parameters/input.ts
packages/babel-parser/test/fixtures/typescript/function/pattern-optional-parameters/input.ts
function f([]?, {}) {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/overloads/input.ts
packages/babel-parser/test/fixtures/typescript/function/overloads/input.ts
export function f(x: number): number; export function f(x: string): string;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/function/anonymous-generator/input.ts
packages/babel-parser/test/fixtures/typescript/function/anonymous-generator/input.ts
const fn = function* <T>(input: T): Generator<number> { yield 2; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/assign/invalid-TSTypeParameterInstantiation/input.ts
packages/babel-parser/test/fixtures/typescript/assign/invalid-TSTypeParameterInstantiation/input.ts
export abstract class AbstractClass { public static myFunc?: <M extends AbstractClass>( this: AbstractClass, instance: M, ) => void; } export class ConcreteClass extends AbstractClass { declare myField: string; } export const init = () => { const cls = ConcreteClass; cls.myFunc<Co...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/assign/parenthesized-object-assign/input.ts
packages/babel-parser/test/fixtures/typescript/assign/parenthesized-object-assign/input.ts
({}) = x
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/assign/invalid/input.ts
packages/babel-parser/test/fixtures/typescript/assign/invalid/input.ts
(a = b) += 1;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/const/initializer-ambient-context/input.ts
packages/babel-parser/test/fixtures/typescript/const/initializer-ambient-context/input.ts
declare module N { enum E { ok = 0 } export const string = "2"; export const number = 1.; export const bigint = 0n; export const negative_bigint = -0n; export const negative_number = -1; export const template = `-2`; export const False = false; export const True = true; export const E_ok = E....
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/const/no-initializer/input.ts
packages/babel-parser/test/fixtures/typescript/const/no-initializer/input.ts
const x: number;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/const/invalid-initializer-ambient-context/input.ts
packages/babel-parser/test/fixtures/typescript/const/invalid-initializer-ambient-context/input.ts
declare module N { export const not_enum = N[not + enum]; export const binary_expression = 1 + 2; export const regex = /1/; export const Undefined = undefined; export const Null = null; export const identifier_reference = globalThis; export const parenthesized = (42); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/const/reserved-word/input.ts
packages/babel-parser/test/fixtures/typescript/const/reserved-word/input.ts
const b: const;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/import-side-effects/input.ts
packages/babel-parser/test/fixtures/typescript/import/import-side-effects/input.ts
import "foo";
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/equals-require-in-script/input.ts
packages/babel-parser/test/fixtures/typescript/import/equals-require-in-script/input.ts
import a = require("a");
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/import-named/input.ts
packages/babel-parser/test/fixtures/typescript/import/import-named/input.ts
import { foo } from "bar";
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/type-equals/input.ts
packages/babel-parser/test/fixtures/typescript/import/type-equals/input.ts
import type A = B.C; import type B = C;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/internal-comments/input.ts
packages/babel-parser/test/fixtures/typescript/import/internal-comments/input.ts
/*1*/ import /*2*/ D /*3*/, /*4*/ { /*5*/ A /*6*/, /*7*/ B /*8*/ as /*9*/ C /*10*/ } /*11*/ from /*12*/ "foo"; /*1*/ import /*2*/ * /*3*/ as /*4*/ foo /*5*/ from /*6*/ "foo";
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/import-star-as/input.ts
packages/babel-parser/test/fixtures/typescript/import/import-star-as/input.ts
import * as a from "a";
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false