Narrowing `Uint8Array<ArrayBuffer>` in Effect Typescript

Is there a built-in for a narrowed Uint8Array<ArrayBuffer>? I'm currently jankily overriding the type:

export const u8a = S.Uint8Array as S.Schema<Uint8Array<ArrayBuffer>, ReadonlyArray<number>>
Was this page helpful?