diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-06 20:40:29 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-06 20:43:49 +0530 |
| commit | cda0419722b022ed0a8f3c4fd3122230b19a0c64 (patch) | |
| tree | 6d63849e950cc4c0257a2368560eb1bafefbd9d4 /examples/custom-effect.ts | |
| parent | a56f093bf08780ab7ed7ef196f031c193a522922 (diff) | |
| download | ts-types-lang-cda0419722b022ed0a8f3c4fd3122230b19a0c64.tar.gz ts-types-lang-cda0419722b022ed0a8f3c4fd3122230b19a0c64.zip | |
feat: adds examples for everything
Diffstat (limited to 'examples/custom-effect.ts')
| -rw-r--r-- | examples/custom-effect.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/custom-effect.ts b/examples/custom-effect.ts new file mode 100644 index 0000000..948caf4 --- /dev/null +++ b/examples/custom-effect.ts @@ -0,0 +1,10 @@ +import { DefineEffect, Effect } from '../src/stdlib' + +interface Wow<_A, _B> extends Effect { } + +export type main = [ + DefineEffect<"Wow", `(a, b) => { + console.log(typeToString(a), '-->', typeToString(b)) + }`>, + Wow<"a", 69>, +] |
