Error with Unsupported Key Schema in Effect Typescript Library

Hi! I have this schema for Record<PropertyKey, unknown>.
import { Schema } from "effect"

Schema.Record({
  key: Schema.PropertyKey,
  value: Schema.Unknown
})


I'm getting the following error (playground link):
Error: Unsupported key schema
schema (NumberKeyword): number
    at go (/home/r24e23sdiw9w1oqo1ljpo851jbidnw-h5th/playground-1756477003179/node_modules/.pnpm/effect@3.17.9/node_modules/effect/dist/cjs/SchemaAST.js:1993:15)
    at go (/home/r24e23sdiw9w1oqo1ljpo851jbidnw-h5th/playground-1756477003179/node_modules/.pnpm/effect@3.17.9/node_modules/effect/dist/cjs/SchemaAST.js:1990:19)
    at Object.record (/home/r24e23sdiw9w1oqo1ljpo851jbidnw-h5th/playground-1756477003179/node_modules/.pnpm/effect@3.17.9/node_modules/effect/dist/cjs/SchemaAST.js:1996:3)
    at getDefaultTypeLiteralAST (/home/r24e23sdiw9w1oqo1ljpo851jbidnw-h5th/playground-1756477003179/node_modules/.pnpm/effect@3.17.9/node_modules/effect/dist/cjs/Schema.js:1383:13)
    at makeTypeLiteralClass (/home/r24e23sdiw9w1oqo1ljpo851jbidnw-h5th/playground-1756477003179/node_modules/.pnpm/effect@3.17.9/node_modules/effect/dist/cjs/Schema.js:1403:54)
    at makeRecordClass (/home/r24e23sdiw9w1oqo1ljpo851jbidnw-h5th/playground-1756477003179/node_modules/.pnpm/effect@3.17.9/node_modules/effect/dist/cjs/Schema.js:1481:36)
    at Object.Record (/home/r24e23sdiw9w1oqo1ljpo851jbidnw-h5th/playground-1756477003179/node_modules/.pnpm/effect@3.17.9/node_modules/effect/dist/cjs/Schema.js:1496:27)
    at Object.eval (/home/r24e23sdiw9w1oqo1ljpo851jbidnw-h5th/playground-1756477003179/dist/main.js:4:17)
    at Object._0x35ff06 (https://r24e23sdiw9w1oqo1ljpo851jbidnw-h5th.w-corp-staticblitz.com/blitz.96435430.js:31:868873)


Am I doing something wrong? 🤔
Was this page helpful?