-
-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Report a bug
π Search Terms
π§© Context
- ArkType version:
- TypeScript version (5.1+):
- Other context you think may be relevant (JS flavor, OS, etc.):
π§βπ» Repro
import { scope } from "arktype"
const Thing = scope({
Locales: '"en" | "nl" | "de"',
Option: {
'[Locales]?': 'string',
},
}).export()
const out = Thing.Option({
en: "test"
})Out currently resolves to:
const out: ArkErrors | {
'[Locales]'?: string;
}Instead of:
const out: ArkErrors | {
en?: string;
nl?: string;
de?: string;
}Also I noticed that if you have a pipe in the index signature it also breaks (playground link)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
To do