Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc1.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @Filename: test123.ts
/////** @type {number} */
////var [|x|];
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc10.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
/////**
//// * @param {?} x
//// * @returns {number}
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc11.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
/////**
//// * @param {?} x
//// * @returns {number}
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc12.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////class C {
//// /**
//// * @return {...*}
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc17.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
////class C {
//// /**
//// * @param {number} x - the first parameter
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc18.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
////class C {
//// /** @param {number} value */
//// set c(value) { return value }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc3.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
/////**
//// * @param {number} x - the first parameter
//// * @param {{ a: string, b: Date }} y - the most complex parameter
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc6.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////declare class C {
//// /** @type {number | null} */
//// p;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc7.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
/////**
//// * @param {number} x
//// * @returns {number}
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc8.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
/////**
//// * @param {number} x
//// * @returns {number}
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc9.5.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
/////**
//// * @template T
//// * @param {T} x
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/annotateWithTypeFromJSDoc9.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
/////**
//// * @param {?} x
//// * @returns {number}
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/cloduleAsBaseClass.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>

// @strict: false
////class A {
//// constructor(x: number) { }
//// foo() { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/cloduleAsBaseClass2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>

// @strict: false
// @Filename: cloduleAsBaseClass2_0.ts
////class A {
//// constructor(x: number) { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/cloduleTypeOf1.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>

// @strict: false
////class C<T> {
//// static foo(x: number) { }
//// x: T;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAddMissingAsync2.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path="fourslash.ts" />
// @strict: false
////interface Stuff {
//// b: () => Promise<string>;
////}
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAddMissingDeclareProperty.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @useDefineForClassFields: true

////class B {
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAddMissingEnumMember12.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////const x; // this is x
////
////// this is E
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAddMissingProperties1.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////interface Foo {
//// a: number;
//// b: string;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAddMissingProperties33.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path="fourslash.ts" />

// @strict: false
////interface Foo {
//// a: number;
//// b: string;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAddMissingProperties37.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////interface I {
//// x: number;
//// y: number;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAddMissingProperties43.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////interface Foo {
//// a: number;
//// b: string;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAddMissingProperties44.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @lib: es2020
// @target: es2020

Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAddMissingProperties6.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////interface I {
//// x: number;
//// y: number;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAwaitInSyncFunction6.5.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////const f = promise => {
//// await promise;
////}
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixAwaitInSyncFunction6.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////const f = (promise) => {
//// await promise;
////}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @moduleResolution: bundler
// @Filename: /node_modules/abs/subModule.js
////export const x = 0;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixChangeJSDocSyntax15.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// var f = <[|function(number?): number|]>(x => x);

verify.codeFix({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @noImplicitOverride: true
//// abstract class A {
//// abstract x: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//// class A {
//// foo() {
//// return class { x: number; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////abstract class A {
//// abstract x: number;
//// private y: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////class A {
//// A: typeof A;
////}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////// Referenced throughout the inheritance chain.
////interface I0 { a: number }
////
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @lib: es2017

////interface I<Species> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//// interface I1 {
//// x: number;
//// }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//// class Base {
//// foo: number;
//// }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//// interface I1 {
//// x: number;
//// }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//// interface I1 {
//// x: number;
//// }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//// interface I1 {
//// x: number;
//// }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////interface IPerson {
//// name: string;
//// birthday?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////
//// interface I {
//// x: number;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixCorrectReturnValue10.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//// const a: ((() => number) | (() => undefined)) = () => { 1 }

verify.codeFixAvailable([
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixCorrectReturnValue18.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//@Filename: file.tsx
//// declare namespace JSX {
//// interface Element { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixCorrectReturnValue19.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//@Filename: file.tsx
//// declare namespace JSX {
//// interface Element { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixCorrectReturnValue20.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//@Filename: file.tsx
//// declare namespace JSX {
//// interface Element { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixCorrectReturnValue8.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
//// function Foo (a: (() => number) | (() => undefined) ) { a() }
//// Foo(() => { 1 })

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @allowjs: true
// @noEmit: true
// @checkJs: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @allowjs: true
// @noEmit: true
// @checkJs: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @allowjs: true
// @noEmit: true
// @checkJs: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @Filename: /a.ts
////export const foo = 0;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////class C {
//// constructor(public foo) {
//// }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
////class C {
//// foo: number;
//// constructor() {[|
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixInferFromUsageConstructor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @strictNullChecks: true

////class TokenType {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowJs: true
// @checkJs: true
// @noImplicitAny: true
Expand Down
1 change: 1 addition & 0 deletions tests/cases/fourslash/codeFixInferFromUsageGetter2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @noImplicitAny: true
////class C {
//// [|get x() |]{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @noImplicitAny: true
////function f1(a) { a; }
////function h1() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @noImplicitAny: true
////function f([|a? |]){
//// a;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />

// @strict: false
// @allowJs: true
// @checkJs: true
// @noImplicitAny: true
Expand Down
Loading
Loading