You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ Use any boolean returning expression with `@if` annotation
48
48
49
49
```typescript
50
50
/**
51
-
* @materialize
51
+
* @materialized
52
52
* @if process.env.DEBUG !== undefined
53
53
*/
54
54
asyncfunction someComplexLogic() {
@@ -58,7 +58,7 @@ async function someComplexLogic() {
58
58
59
59
## How it works internally
60
60
61
-
We scan the codebase for all files containing functions with the `@materialize` annotation and temporarily add a simple statement to the end of the file to make it executable with `ts-node`.
61
+
We scan the codebase for all files containing functions with the `@materialized` annotation and temporarily add a simple statement to the end of the file to make it executable with `ts-node`.
62
62
63
63
Then we capture the output and replace the annotated functions body with the serialized response from the ts-node execution.
64
64
@@ -67,7 +67,7 @@ Then we capture the output and replace the annotated functions body with the ser
0 commit comments