Skip to content

Commit 8eb86f9

Browse files
(DOCSP-17936) Run Command TS Example (#230)
Co-authored-by: dariakp <[email protected]>
1 parent 8c89074 commit 8eb86f9

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

source/usage-examples/command.txt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,26 @@ Example
3434

3535
.. include:: /includes/connect-guide-note.rst
3636

37-
.. literalinclude:: /code-snippets/usage-examples/command.js
38-
:language: javascript
39-
:linenos:
37+
.. tabs::
4038

39+
.. tab:: JavaScript
40+
:tabid: javascript
41+
42+
.. literalinclude:: /code-snippets/usage-examples/command.js
43+
:language: javascript
44+
:linenos:
45+
46+
.. tab:: TypeScript
47+
:tabid: typescript
48+
49+
.. literalinclude:: /code-snippets/usage-examples/command.js
50+
:language: javascript
51+
:linenos:
52+
53+
.. note:: Identical Code Snippets
54+
55+
The JavaScript and TypeScript code snippets above are identical. There are no
56+
TypeScript specific features of the driver relevant to this use case.
4157

4258
When you run the above command, you should see output similar to the
4359
following:

0 commit comments

Comments
 (0)