Const code
code: "/// <reference path="some-path" />/// <reference types="some-types" />declare var v_var;declare let v_let;declare const v_const;declare const v_any: any;declare const v_boolean: boolean;declare const v_never: never;declare const v_null: null;declare const v_number: number;declare const v_object: object;declare const v_string: string;declare const v_symbol: symbol;declare const v_this: this;declare const v_undefined: undefined;declare const v_void: void;declare const v_array: any[];declare const v_constructor: new <T>(v: T) => any;declare const v_function: <T>(v: T) => any;declare const v_function_predicate_1: () => this is string;declare const v_function_predicate_2: (v) => v is string;declare const v_general: X.Y.Z<string>;declare const v_intersection: string & number;declare const v_keyof: keyof X;declare const v_literal_true: true;declare const v_literal_false: false;declare const v_literal_number: 123;declare const v_literal_string: 'str';declare const v_mapped: {[T in keyof X]: any;};declare const v_mapped_readonly: {readonly [T in keyof X]: any;};declare const v_mapped_optional: {[T in keyof X]?: any;};declare const v_object: {readonly a?: any;b?<T>(v: T): any;o(v?: string): void;r(...v: string[]): string;r2(...v);r3(...v: string[][]);new (): any;(): any;<T>(v: T): T;new <T>(v: T): any;readonly [index: number]: any;};declare const v_sub_1: X[any]['abc'][123];declare const v_sub_2: A.B.C[X[any]][any];declare const v_tuple: [string, number];declare const v_typeof_1: typeof X;declare const v_typeof_2: typeof X.Y.Z;declare const v_union: string | number;import "path/to/somewhere";import import_default from "path/to/somewhere";import import_default1, * as import_namespace1 from "path/to/somewhere";import * as import_namespace2 from "path/to/somewhere";import import_default2, {im_0 as im_1, im_2} from "path/to/somewhere";import {im_3 as im_4, im_5} from "path/to/somewhere";export default X;export default X.Y.Z;export = A;export = A.B.C;export {ex_0 as ex_1, ex_2};export as namespace NS;export * from "path/to/somewhere";export {ex_3 as ex_4, ex_5} from "path/to/somewhere";export declare class ZXC extends X.Y.Z {}export declare abstract class ABC<T, U> extends XYZ<S, V> {constructor();method?(): void;public method1<T>(v: T): T;protected method2(): void;private method3(): void;public abstract method4(): void;property?: string;public property1: string;protected property2: string;private property3: string;public abstract property4: string;"": string;""(): void;}export enum Kind {A,B = 123,C,}export interface X<T> extends C, D {a: T;"": T;""(): void;}export declare namespace NS {const ns: any;}declare global {interface String {toXYZ(): any;}}declare module "xyz" {const aa: string;}type TP<T> = T | string;type adjust = <T, U>(fn: (v: T) => U, index: number, array: T[]) => (T | U)[];declare function x<T>(v: T): T;import xyz = require('xyz');type X = A[B[C]];type TypeName<T> =T extends string ? "string" :T extends number ? "number" :T extends boolean ? "boolean" :T extends undefined ? "undefined" :T extends Function ? "function" :"object";type ReturnType<T> = T extends (...args: any[]) => infer R ? R : T;type X = {0: 123}" = `/// <reference path="some-path" />/// <reference types="some-types" />declare var v_var;declare let v_let;declare const v_const;declare const v_any: any;declare const v_boolean: boolean;declare const v_never: never;declare const v_null: null;declare const v_number: number;declare const v_object: object;declare const v_string: string;declare const v_symbol: symbol;declare const v_this: this;declare const v_undefined: undefined;declare const v_void: void;declare const v_array: any[];declare const v_constructor: new <T>(v: T) => any;declare const v_function: <T>(v: T) => any;declare const v_function_predicate_1: () => this is string;declare const v_function_predicate_2: (v) => v is string;declare const v_general: X.Y.Z<string>;declare const v_intersection: string & number;declare const v_keyof: keyof X;declare const v_literal_true: true;declare const v_literal_false: false;declare const v_literal_number: 123;declare const v_literal_string: 'str';declare const v_mapped: {[T in keyof X]: any;};declare const v_mapped_readonly: {readonly [T in keyof X]: any;};declare const v_mapped_optional: {[T in keyof X]?: any;};declare const v_object: {readonly a?: any;b?<T>(v: T): any;o(v?: string): void;r(...v: string[]): string;r2(...v);r3(...v: string[][]);new (): any;(): any;<T>(v: T): T;new <T>(v: T): any;readonly [index: number]: any;};declare const v_sub_1: X[any]['abc'][123];declare const v_sub_2: A.B.C[X[any]][any];declare const v_tuple: [string, number];declare const v_typeof_1: typeof X;declare const v_typeof_2: typeof X.Y.Z;declare const v_union: string | number;import "path/to/somewhere";import import_default from "path/to/somewhere";import import_default1, * as import_namespace1 from "path/to/somewhere";import * as import_namespace2 from "path/to/somewhere";import import_default2, {im_0 as im_1, im_2} from "path/to/somewhere";import {im_3 as im_4, im_5} from "path/to/somewhere";export default X;export default X.Y.Z;export = A;export = A.B.C;export {ex_0 as ex_1, ex_2};export as namespace NS;export * from "path/to/somewhere";export {ex_3 as ex_4, ex_5} from "path/to/somewhere";export declare class ZXC extends X.Y.Z {}export declare abstract class ABC<T, U> extends XYZ<S, V> {constructor();method?(): void;public method1<T>(v: T): T;protected method2(): void;private method3(): void;public abstract method4(): void;property?: string;public property1: string;protected property2: string;private property3: string;public abstract property4: string;"": string;""(): void;}export enum Kind {A,B = 123,C,}export interface X<T> extends C, D {a: T;"": T;""(): void;}export declare namespace NS {const ns: any;}declare global {interface String {toXYZ(): any;}}declare module "xyz" {const aa: string;}type TP<T> = T | string;type adjust = <T, U>(fn: (v: T) => U, index: number, array: T[]) => (T | U)[];declare function x<T>(v: T): T;import xyz = require('xyz');type X = A[B[C]];type TypeName<T> =T extends string ? "string" :T extends number ? "number" :T extends boolean ? "boolean" :T extends undefined ? "undefined" :T extends Function ? "function" :"object";type ReturnType<T> = T extends (...args: any[]) => infer R ? R : T;type X = {0: 123}`