Comparing Interface vs Type for RandomBytes Function
What do you prefer for a service? Interface with a function or just a function?
or
or
export interface RandomBytes {
readonly next: (
bytesLength: number,
) => Effect.Effect<never, never, Uint8Array>;
}export type RandomBytes = (
bytesLength: number,
) => Effect.Effect<never, never, Uint8Array>;