Skip to content

Commit

Permalink
Move 'generic this' sample to samples folder
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Nov 10, 2021
1 parent eb28e58 commit e05c530
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/generic-this-1.ts → samples/generic-this-1.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Run with "npm run build && node build/src/generic-this-1.js"
// This is a manual approach (could use some sort of code generation too).
// This is a sample file demonstarting the approached used for "polymorphic this"
// for generic method inheritance. It can be run with:
//
// npm run build && node build/samples/generic-this-1.js"

class BaseClass<T> {
public value: T;
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"include": [
"src",
"test",
"bdd"
"bdd",
"samples"
]
}

0 comments on commit e05c530

Please sign in to comment.