Open utenma opened 3 weeks ago
createPattern arg repetition type is widened to string
createPattern
repetition
string
however According to MDN should be "repeat" | "repeat-x" | "repeat-y" | "no-repeat"
"repeat" | "repeat-x" | "repeat-y" | "no-repeat"
location in repo https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/main/baselines/dom.generated.d.ts#L5747
current signature
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
expected signature
type PatternRepeatMode = "repeat" | "repeat-x" | "repeat-y" | "no-repeat" createPattern(image: CanvasImageSource, repetition: PatternRepeatMode | null): CanvasPattern | null;
Just to make the issue clear: Currently we have this in current master.
createPattern
argrepetition
type is widened tostring
however According to MDN should be
"repeat" | "repeat-x" | "repeat-y" | "no-repeat"
location in repo https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/main/baselines/dom.generated.d.ts#L5747
current signature
expected signature