sandstone
sandstone copied to clipboard
Incorrect `Advancement` generic type inference
Example:
Advancement('test', {
criteria: {
a: {
trigger: 'minecraft:tick'
},
b: {
trigger: 'minecraft:tick'
}
},
requirements: ['a']
});
This should be inferred as Advancement<'a' | 'b'>
, not Advancement<'a'>
. Otherwise it thinks b
is not a valid criterion.
Worst case, this should be fixed by removing this type parameter and accepting any string[]
in requirements
.