Error Importing Type from 'effect' in TypeScript

Anybody know what I'm doing wrong here importing effect:

import { Effect } from 'effect'
// import * as Effect from "effect/Effect"


type FilterResult = false | AnyPostReasonToInsert

const filterEffect = (post: PostInsertWithoutReason): Effect<FilterResult, never>

I get the error: Cannot use namespace 'Effect' as a type.ts(2709) on the last line. Even if I import as a namespace (commented out above) it still fails
Was this page helpful?