aboutsummaryrefslogtreecommitdiff
path: root/examples/custom-effect.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-08 23:07:41 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-08 23:07:41 +0530
commit580ef150778326262d04018460f672bda53d5696 (patch)
tree53b93a2e381e6c15ed4e959f766fc88afc234a0f /examples/custom-effect.ts
parenta41d70afe7692e4ef344bc3c599115009f2dad15 (diff)
downloadts-types-lang-580ef150778326262d04018460f672bda53d5696.tar.gz
ts-types-lang-580ef150778326262d04018460f672bda53d5696.zip
chore: adds prettier
Diffstat (limited to '')
-rw-r--r--examples/custom-effect.ts15
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>
]