9 lines
312 B
TypeScript
9 lines
312 B
TypeScript
//// [parserOverloadOnConstants1.ts]
|
|
interface Document {
|
|
createElement(tagName: string): HTMLElement;
|
|
createElement(tagName: 'canvas'): HTMLCanvasElement;
|
|
createElement(tagName: 'div'): HTMLDivElement;
|
|
createElement(tagName: 'span'): HTMLSpanElement;
|
|
}
|
|
|
|
//// [parserOverloadOnConstants1.js]
|