27Editor
>
5Text
>
6Borders
>
5Elements
>
5Ghost Elements
>
5Icons
>
5Scrollbar
>
28Terminal
>
25Color
>
18Git
>
3Misc
>
43Syntax
>
0Players
>
zedmain
  • zed
  • .github
  • node_modules
  • src
  • components
  • Button.tsx
  • pages
  • Contact.tsx
  • Help.tsx
  • Home.css
  • Home.tsx
  • App.tsx
  • .gitignore
  • .prettierrc
  • index.html
  • index.js
  • package.json
  • package-lock.json
  • tsconfig.json
App.tsx~/src
index.html
package.json
src/pages/Home.tsx
>functionApp()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
import fs from "fs";
'fs' is declared but its value is never read.
 
2
// simple comment
 
3
/** @param {string} a block comment **/
 
4
type Prop = { a; boolean; b: null; c: string };
 
5
enum Enum { zed = 'zed' }
 
6
const number = 1;
 
7
const string = "strig";
 
8
const boolean = true;
 
9
const object = { id: `${string}_id1` } ;
 
10
const regex = /(L^\d]string).*/i;
 
11
 
12
export default function App<T extends Prop = object>(p: T): any { 
 
13
  if (p == true) return null;
 
14
  return (
 
15
    <div className="class1" style={{ test: 1 }}>
 
16
      hello world {p.name}!
 
17
    </div>
 
18
  )
 
19
};
 
20
 
21
class Test {
 
22
  private readonly name: string;
 
23
  @guard({ description: 'Gets name' })
 
24
  public getName() {
 
25
    return this.name;
 
26
  }
 
27
}
 
28
zed -- zsh
zed -- zsh
zed ➤./colors.sh
000001002003004005006007
008009010011012013014015
22
23:5TSX