Skip to content

Commit

Permalink
refactor: use pipe function instead of method
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Massolari committed Nov 6, 2024
1 parent b332c65 commit 86a97aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2024-09-26-typescript-effect/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 86a97aa

Please sign in to comment.