diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-08 23:07:41 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-08 23:07:41 +0530 |
| commit | 580ef150778326262d04018460f672bda53d5696 (patch) | |
| tree | 53b93a2e381e6c15ed4e959f766fc88afc234a0f /examples/custom-effect.ts | |
| parent | a41d70afe7692e4ef344bc3c599115009f2dad15 (diff) | |
| download | ts-types-lang-580ef150778326262d04018460f672bda53d5696.tar.gz ts-types-lang-580ef150778326262d04018460f672bda53d5696.zip | |
chore: adds prettier
Diffstat (limited to '')
| -rw-r--r-- | examples/custom-effect.ts | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/examples/custom-effect.ts b/examples/custom-effect.ts index 5fbffed..3dbe395 100644 --- a/examples/custom-effect.ts +++ b/examples/custom-effect.ts @@ -1,15 +1,18 @@ import { Bind, DefineEffect, Effect, Kind1, Print } from '../stdlib' -interface Mathemagic<_A, _B> extends Effect { } +interface Mathemagic<_A, _B> extends Effect {} interface PrintK extends Kind1 { return: Print<this['input']> } export type main = [ - DefineEffect<"Mathemagic", `(a, b) => { - console.log(typeToString(a)) - return { result: 5 * b.getLiteralValue() } - }`>, - Bind<Mathemagic<"a", 69>, PrintK>, + DefineEffect< + 'Mathemagic', + `(a, b) => { + console.log(typeToString(a)) + return { result: 5 * b.getLiteralValue() } + }` + >, + Bind<Mathemagic<'a', 69>, PrintK> ] |
