This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typedef: Use AbstractWalker and fix error locations (#2460)
- Loading branch information
1 parent
2f9bdbf
commit b6cc7e1
Showing
10 changed files
with
167 additions
and
215 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const [ paramA, paramB ] = [15, 'test']; | ||
~ [expected array-destructuring: '[ paramA, paramB ]' to have a typedef] | ||
~~~~~~~~~~~~~~~~~~ [expected array-destructuring: '[ paramA, paramB ]' to have a typedef] | ||
|
||
const [ paramA3, paramB3 ]: { number: string, paramB1: string } = [15, 'test']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var NoTypesFn = function (a, b) {} | ||
|
||
var NoTypesArrowFn = (a, b) => {} | ||
~ [expected arrow-parameter: 'a' to have a typedef] | ||
~ [expected arrow-parameter: 'b' to have a typedef] | ||
~ [expected arrow-parameter: 'a' to have a typedef] | ||
~ [expected arrow-parameter: 'b' to have a typedef] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
|
||
|
||
const { paramA, paramB } = { paramA: "test", paramB: 15 }; | ||
~ [expected object-destructuring: '{ paramA, paramB }' to have a typedef] | ||
|
||
~~~~~~~~~~~~~~~~~~ [expected object-destructuring: '{ paramA, paramB }' to have a typedef] | ||
|
||
const { paramA, paramB }: { paramA: string, paramB: number } = { paramA: "test", paramB: 15 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
var NoTypeObjectLiteralWithPropertyGetter = { } | ||
~ [expected variable-declaration: 'NoTypeObjectLiteralWithPropertyGetter' to have a typedef] | ||
|
||
var v = { } | ||
~ [expected variable-declaration: 'v' to have a typedef] | ||
|
||
const { paramA, paramB } = { paramA: "test", paramB: 15 }; | ||
const [ paramA, paramB ] = [15, 'test']; |