feat: add support for running typescript

This commit is contained in:
Hatem Hosny committed 2025-01-05 02:24:11 +02:00
1 parent a35a51cc05
commit 8cddefb52f
2 files changed
+13 -9

No files matched your search

+2 -5
View File
@@ -11,6 +11,7 @@ intro: |
A TypeScript cheat sheet with the most important concepts, functions, methods, and more. A complete quick reference for beginners.
plugins:
- copyCode
- runCode
---
## Getting Started
@@ -293,11 +294,7 @@ class Greeter {
```ts
function enumerable(value: boolean) {
return function (
target: any,
propertyKey: string,
descriptor: PropertyDescriptor
) {
return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {
descriptor.enumerable = value;
};
}