mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 21:44:45 +03:00
feat: add support for running typescript
This commit is contained in:
1 parent
a35a51cc05
commit
8cddefb52f
2 files changed
+13
-9
No files matched your search
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user