Strange Behavior with Schema.struct Declaration
Hi, I notice the following strange behavior:
I would tend to think this is a bug. But maybe I am wrong?
I would tend to think this is a bug. But maybe I am wrong?
declare const basis: string;
/*
Schema.Schema<never, {
readonly [x: string]: number;
readonly [x: number]: number;
}>
instead of
Schema.Schema<never, {
readonly [x: string]: number;
}>
*/
const tryIt = Schema.struct({ [basis]: Schema.number });