Skip to content

Commit 26c457e

Browse files
authored
Docsp 26722: Adding TypeScript landing page (#860)
* DOCSP-26722: Created TypeScript landing page. * Forgot to link to the new topic. * PR feedback updates. * Fixed an issue with the source constants. * CC feedback * Small grammar fixes.
1 parent 91fde5a commit 26c457e

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

snooty.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
99
[constants]
1010
package-name-org = "docs-ecosystem"
1111
stable-api = "Stable API"
12+
node-driver-long = "MongoDB Node.js Driver"
13+
node-driver-short = "Node.js Driver"
1214

1315
csharp-version = "2.18"
1416
csharp-docs-versioned = "https://mongodb.github.io/mongo-csharp-driver/{+csharp-version+}"

source/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ Don’t see your desired language? Browse a list of :doc:`community supported li
3131
Rust Driver </rust>
3232
Scala Driver </scala>
3333
Swift Driver </swift>
34+
TypeScript </typescript>
3435
About Compatibility Tables <about-compatibility>

source/typescript.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.. _typescript-center:
2+
3+
==========
4+
TypeScript
5+
==========
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 1
13+
:class: twocols
14+
15+
Introduction
16+
------------
17+
18+
Welcome to the documentation site for official MongoDB TypeScript support.
19+
Since TypeScript compiles to JavaScript, you can use the
20+
`{+node-driver-long+} <https://www.mongodb.com/docs/drivers/node/current/>`__
21+
to create TypeScript applications that communicate with MongoDB.
22+
23+
You must use version 4.0 or later of the {+node-driver-short+} to use
24+
TypeScript types with MongoDB.
25+
26+
To learn more about the features and limitations of using TypeScript with the
27+
{+node-driver-short+}, see
28+
`TypeScript Fundamentals <https://www.mongodb.com/docs/drivers/node/current/fundamentals/typescript/>`__
29+
in the {+node-driver-short+} documentation.

0 commit comments

Comments
 (0)