Skip to content

Commit

Permalink
Clean up headings
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Feb 12, 2024
1 parent ea74685 commit 7164d59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/get-started/using-with-typescript.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Using deck.gl with TypeScript

## deck.gl v9+

Starting from v9.0, deck.gl publishes official TypeScript types for all modules. If TypeScript is enabled in your project, imports from deck.gl packages will include types. Examples:

```js
Expand All @@ -14,7 +16,7 @@ import type {GeoJsonLayerProps} from '@deck.gl/layers';

Help us improve the types by reporting issues or sending suggestions on GitHub!

## Alternative Solution for deck.gl v8.x
## deck.gl v8

Starting from v8.8, deck.gl publishes "public preview" TypeScript types via an opt-in only entry point. To use the official types in your application, find the following statements:

Expand Down Expand Up @@ -42,7 +44,7 @@ Note that the typed exports are a work in progress. They are not exposed by defa
The typed exports will remain at the `typed` entry points throughout the rest of the 8.x releases. They will be exposed directly at the package roots starting in v9.0.


## Alternative Solution for Legacy Versions
## Legacy Versions

If you are using a version before v8.8, a third-party typings library is available.

Expand Down

0 comments on commit 7164d59

Please sign in to comment.