From 86a97aaa4900533df7638c76d4a21dca909527a5 Mon Sep 17 00:00:00 2001 From: Douglas Massolari Date: Wed, 6 Nov 2024 18:17:18 +0100 Subject: [PATCH] refactor: use `pipe` function instead of method --- 2024-09-26-typescript-effect/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2024-09-26-typescript-effect/src/index.ts b/2024-09-26-typescript-effect/src/index.ts index a3397bc..ed5735b 100644 --- a/2024-09-26-typescript-effect/src/index.ts +++ b/2024-09-26-typescript-effect/src/index.ts @@ -10,7 +10,7 @@ import { const CityResponse = Schema.Struct({ name: Schema.String, - country_code: Schema.String.pipe(Schema.length(2)), + country_code: pipe(Schema.String, Schema.length(2)), latitude: Schema.Number, longitude: Schema.Number, });