File tree 3 files changed +38
-0
lines changed
3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,23 @@ const snippets = {
57
57
`function firstElem<Type>(arr: Type[]): Type | undefined {return arr[0];}` ,
58
58
`topic complete return to menu!` ,
59
59
] ,
60
+ Tsx : [
61
+ `type: tsx` ,
62
+ `import type { menuBtn } from '@components/ReactHooks/menu';` ,
63
+ `<Select selectProps={{ items: cards }} {...props} />` ,
64
+ `useEffect(() => { findOptions(searchText);}, [searchText]);` ,
65
+ `<div onClick={() => addLinkedRecord(recordId)} key={recordId}>` ,
66
+ `export const useTransition = <T extends HTMLElement = HTMLElement>():` ,
67
+ `topic complete return to menu!` ,
68
+ ] ,
69
+ Classes : [
70
+ `type: classes` ,
71
+ `class magician {powers: element[]; constructor(powers: element[]){}` ,
72
+ `class Greeter {name: string; constructor() { this.name = "hello";}}` ,
73
+ `class Place {readonly name: string = "world";}` ,
74
+ `class Derived extends Base {constructor() {super();}}` ,
75
+ `topic complete return to menu!` ,
76
+ ] ,
60
77
} ;
61
78
// key event listener
62
79
document . addEventListener ( "keydown" , ( event ) => {
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ <h1>Touch-Typed!</h1>
33
33
< input type ="button " value ="Generics " class ="grid-item "> </ input >
34
34
< input type ="button " value ="Interfaces " class ="grid-item "> </ input >
35
35
< input type ="button " value ="Casting " class ="grid-item "> </ input >
36
+ < input type ="button " value ="Tsx " class ="grid-item "> </ input >
37
+ < input type ="button " value ="Classes " class ="grid-item "> </ input >
36
38
</ form >
37
39
38
40
Original file line number Diff line number Diff line change @@ -59,13 +59,32 @@ const snippets = {
59
59
`function firstElem<Type>(arr: Type[]): Type | undefined {return arr[0];}` ,
60
60
`topic complete return to menu!` ,
61
61
] ,
62
+ Tsx : [
63
+ `type: tsx` ,
64
+ `import type { menuBtn } from '@components/ReactHooks/menu';` ,
65
+ `<Select selectProps={{ items: cards }} {...props} />` ,
66
+ `useEffect(() => { findOptions(searchText);}, [searchText]);` ,
67
+ `<div onClick={() => addLinkedRecord(recordId)} key={recordId}>` ,
68
+ `export const useTransition = <T extends HTMLElement = HTMLElement>():` ,
69
+ `topic complete return to menu!` ,
70
+ ] ,
71
+ Classes : [
72
+ `type: classes` ,
73
+ `class magician {powers: element[]; constructor(powers: element[]){}` ,
74
+ `class Greeter {name: string; constructor() { this.name = "hello";}}` ,
75
+ `class Place {readonly name: string = "world";}` ,
76
+ `class Derived extends Base {constructor() {super();}}` ,
77
+ `topic complete return to menu!` ,
78
+ ] ,
62
79
} ;
63
80
64
81
type selectOptions = {
65
82
Functions : string [ ] ;
66
83
Casting : string [ ] ;
67
84
Interfaces : string [ ] ;
68
85
Generics : string [ ] ;
86
+ Tsx : string [ ] ;
87
+ Classes : string [ ] ;
69
88
} ;
70
89
type options = keyof selectOptions ;
71
90
You can’t perform that action at this time.
0 commit comments