mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
654 B
TypeScript
25 lines
654 B
TypeScript
//// [tests/cases/compiler/constructorOverloads5.ts] ////
|
|
|
|
//// [constructorOverloads5.ts]
|
|
interface IArguments {}
|
|
|
|
declare namespace M {
|
|
export function RegExp(pattern: string): RegExp;
|
|
export function RegExp(pattern: string, flags: string): RegExp;
|
|
export class RegExp {
|
|
constructor(pattern: string);
|
|
constructor(pattern: string, flags: string);
|
|
exec(string: string): string[];
|
|
test(string: string): boolean;
|
|
source: string;
|
|
global: boolean;
|
|
ignoreCase: boolean;
|
|
multiline: boolean;
|
|
lastIndex: boolean;
|
|
}
|
|
}
|
|
|
|
|
|
//// [constructorOverloads5.js]
|
|
"use strict";
|