Commit Graph

17 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
bc404eed4a
Put current version of babel-types in the root (#47197)
* Put current version of babel-types in the root

Previously, the code that supports the oldest version of Typescript was in the root: 3.1 and below. Newer versions were in ts*/ subdirectories.

This PR puts the newest version in the root, and older versions -- before 3.7 in this case -- in ts*/ subdirectories. This is possible because all supported versions of the Typescript now understand the typesVersions property in package.json.

This PR needs a new version of DefinitelyTyped-tools and dtslint, which I will ship soon. It also needs to be brought up to date with master.

* delete ts3.7/

* use correct relative reference for test
2020-09-02 08:19:28 -07:00
ExE Boss
a62f2d4bb3
feat(babel‑types): Add support for TypeScript 3.7 assertion functions (#45830) 2020-07-06 14:01:55 -07:00
Mike Marcacci
20fdb93704 Fix incorrect argument type on TSTypeReference (#34926)
https://babeljs.io/docs/en/babel-types#tstypereference
2019-04-24 12:26:29 -05:00
Ian Craig
aa79821823 Switch to | null | undefined to match babel 2019-02-18 12:35:11 -08:00
Ian Craig
08ba15aab8 is* and assert* checks accept null and undefined 2019-02-17 17:12:46 -08:00
Nathan Shively-Sanders
f0ce987bc1 Update project urls to match NPM url
Note that this *trivially* updates project urls by adding the NPM url to
the end, even when the urls are almost identical or the DT one is
outdated. I'll clean up the urls in a later commit.

This PR is unfinished! Please do not merge it yet.
2019-02-11 17:10:55 -08:00
Tim Kendrick
ee72b6f183 [babel-types] Allow implicit boolean JSXAttribute values 2018-06-13 15:31:28 +01:00
Ryan Petrich
c972d79ad2 babel-traverse: Update all babel-related packages to require TypeScript 2.8 (so that tests pass) 2018-06-11 05:57:50 -04:00
Tim Kendrick
db0789397a [babel-types] Allow sparse ArrayExpression nodes (#25556) 2018-05-07 09:07:56 -07:00
Peter Burns
786fae6a7f ExportNamedDeclaration#source can be null (#23909)
e.g. this named declaration has a source:
```javascript
export {foo} from './bar.js';
```

and this one does not:
```javascript
export const foo = 10;
```

Try it out at https://astexplorer.net/ to confirm.
2018-02-26 08:59:53 -08:00
Boris Cherny
99d82c01e0 [babel-types] add typescript types to support v7.0.0 (#21972)
* [babel-types] add typescript types to support v7.0.0

* fix lint

* fix: Identifier should be a TSEntityName

* change all occurences of tS => TS
2017-12-18 07:34:43 -08:00
Cameron Martin
7b9d08ea80 Updated isXX methods of babel-types to be in-line with babel-traverse. 2017-11-22 19:48:42 +00:00
Marvin Hagemeister
9b935347f5 Fix linting errors for babel-types 2017-07-19 11:24:43 +02:00
Marvin Hagemeister
352aa44c0a Add react helpers to babel-types 2017-07-18 11:13:56 +02:00
Sam Baxter
cb8b7aeb33 Fix function param type definitions for babel-types (#15973) 2017-05-04 18:09:02 -07:00
Lucas Neiva
9fbba5a517 Add babel-types NullLiteral type aliases (#16066) 2017-05-04 18:01:48 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00