We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e528ee commit 51a393aCopy full SHA for 51a393a
1 file changed
templates/hyperweb/src/hello/index.ts
@@ -0,0 +1,12 @@
1
+export default class Contract {
2
+ state: {
3
+ msg?: string | boolean | null;
4
+ } = {};
5
+
6
+ constructor() { }
7
8
+ hello(x: string) {
9
+ this.state.msg = x;
10
+ return `Hello, ${String(this.state.msg)}`;
11
+ }
12
+}
0 commit comments