├── .gitignore ├── LICENSE ├── README.md ├── bin └── gettypes.js ├── package.json ├── src └── index.ts ├── test ├── cases │ ├── abstract_class.json │ ├── abstract_class.ts │ ├── abstract_method.json │ ├── abstract_method.ts │ ├── accessors.json │ ├── accessors.ts │ ├── bool_union.json │ ├── bool_union.ts │ ├── callable_interface.json │ ├── callable_interface.ts │ ├── comments.json │ ├── comments.ts │ ├── conditionaltype.json │ ├── conditionaltype.ts │ ├── default_type_arg.json │ ├── default_type_arg.ts │ ├── enum.json │ ├── enum.ts │ ├── export_const.json │ ├── export_const.ts │ ├── extends.json │ ├── extends.ts │ ├── function_type_params.json │ ├── function_type_params.ts │ ├── function_types.json │ ├── function_types.ts │ ├── getter_return_value_type_params.json │ ├── getter_return_value_type_params.ts │ ├── implements.json │ ├── implements.ts │ ├── index_signature.json │ ├── index_signature.ts │ ├── indexed_access.json │ ├── indexed_access.ts │ ├── infer_field.json │ ├── infer_field.ts │ ├── infer_function_type.json │ ├── infer_function_type.ts │ ├── infer_instantiation.json │ ├── infer_instantiation.ts │ ├── infer_object_type.json │ ├── infer_object_type.ts │ ├── inline_generic.json │ ├── inline_generic.ts │ ├── inline_reference.json │ ├── inline_reference.ts │ ├── internal.json │ ├── internal.ts │ ├── internal_before_constructor.json │ ├── internal_before_constructor.ts │ ├── internal_comments.json │ ├── internal_comments.ts │ ├── internal_extends_external.json │ ├── internal_extends_external.ts │ ├── iterator_type.json │ ├── iterator_type.ts │ ├── keyof.json │ ├── keyof.ts │ ├── linebreaks.json │ ├── linebreaks.ts │ ├── literal_type.json │ ├── literal_type.ts │ ├── map_index_signature.json │ ├── map_index_signature.ts │ ├── mapped_type.json │ ├── mapped_type.ts │ ├── mapped_type_type_param.json │ ├── mapped_type_type_param.ts │ ├── noninternal_prop_in_internal_constructor.json │ ├── noninternal_prop_in_internal_constructor.ts │ ├── object_pattern.json │ ├── object_pattern.ts │ ├── objtype_strindex.json │ ├── objtype_strindex.ts │ ├── optional_prop_argument.json │ ├── optional_prop_argument.ts │ ├── optionalprop.json │ ├── optionalprop.ts │ ├── overload.json │ ├── overload.ts │ ├── param_prop.json │ ├── param_prop.ts │ ├── parameterized_type.json │ ├── parameterized_type.ts │ ├── parenthesized_type.json │ ├── parenthesized_type.ts │ ├── private.json │ ├── private.ts │ ├── private_comments.json │ ├── private_comments.ts │ ├── readonlyarray.json │ ├── readonlyarray.ts │ ├── reexport.json │ ├── reexport.ts │ ├── references.json │ ├── references.ts │ ├── rest_param.json │ ├── rest_param.ts │ ├── static_field.json │ ├── static_field.ts │ ├── string_index.json │ ├── string_index.ts │ ├── subclass_methods.json │ ├── subclass_methods.ts │ ├── symbolproperty.json │ ├── symbolproperty.ts │ ├── this_type.json │ ├── this_type.ts │ ├── true_false_literals.json │ ├── true_false_literals.ts │ ├── tsconfig.json │ ├── tuple.json │ ├── tuple.ts │ ├── type_alias.json │ ├── type_alias.ts │ ├── type_literal.json │ ├── type_literal.ts │ ├── type_param.json │ ├── type_param.ts │ ├── typeof.json │ ├── typeof.ts │ ├── union_inference.json │ ├── union_inference.ts │ ├── union_order.json │ ├── union_order.ts │ ├── void.json │ ├── void.ts │ ├── void_union.json │ └── void_union.ts └── test.js └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/README.md -------------------------------------------------------------------------------- /bin/gettypes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/bin/gettypes.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/package.json -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/src/index.ts -------------------------------------------------------------------------------- /test/cases/abstract_class.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/abstract_class.json -------------------------------------------------------------------------------- /test/cases/abstract_class.ts: -------------------------------------------------------------------------------- 1 | export abstract class X { 2 | } 3 | -------------------------------------------------------------------------------- /test/cases/abstract_method.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/abstract_method.json -------------------------------------------------------------------------------- /test/cases/abstract_method.ts: -------------------------------------------------------------------------------- 1 | export class X { 2 | abstract firstLineLength(): number 3 | } 4 | -------------------------------------------------------------------------------- /test/cases/accessors.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/accessors.json -------------------------------------------------------------------------------- /test/cases/accessors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/accessors.ts -------------------------------------------------------------------------------- /test/cases/bool_union.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/bool_union.json -------------------------------------------------------------------------------- /test/cases/bool_union.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/bool_union.ts -------------------------------------------------------------------------------- /test/cases/callable_interface.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/callable_interface.json -------------------------------------------------------------------------------- /test/cases/callable_interface.ts: -------------------------------------------------------------------------------- 1 | export interface Callable { 2 | (): any 3 | } 4 | -------------------------------------------------------------------------------- /test/cases/comments.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/comments.json -------------------------------------------------------------------------------- /test/cases/comments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/comments.ts -------------------------------------------------------------------------------- /test/cases/conditionaltype.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/conditionaltype.json -------------------------------------------------------------------------------- /test/cases/conditionaltype.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/conditionaltype.ts -------------------------------------------------------------------------------- /test/cases/default_type_arg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/default_type_arg.json -------------------------------------------------------------------------------- /test/cases/default_type_arg.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/default_type_arg.ts -------------------------------------------------------------------------------- /test/cases/enum.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/enum.json -------------------------------------------------------------------------------- /test/cases/enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/enum.ts -------------------------------------------------------------------------------- /test/cases/export_const.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/export_const.json -------------------------------------------------------------------------------- /test/cases/export_const.ts: -------------------------------------------------------------------------------- 1 | export const moveCharLeft: RegExp = /x/ 2 | -------------------------------------------------------------------------------- /test/cases/extends.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/extends.json -------------------------------------------------------------------------------- /test/cases/extends.ts: -------------------------------------------------------------------------------- 1 | export class ChangeDesc extends Error { 2 | } 3 | -------------------------------------------------------------------------------- /test/cases/function_type_params.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/function_type_params.json -------------------------------------------------------------------------------- /test/cases/function_type_params.ts: -------------------------------------------------------------------------------- 1 | export class X { 2 | getMeta(type: Iterator): T | undefined {} 3 | } 4 | -------------------------------------------------------------------------------- /test/cases/function_types.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/function_types.json -------------------------------------------------------------------------------- /test/cases/function_types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/function_types.ts -------------------------------------------------------------------------------- /test/cases/getter_return_value_type_params.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/getter_return_value_type_params.json -------------------------------------------------------------------------------- /test/cases/getter_return_value_type_params.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/getter_return_value_type_params.ts -------------------------------------------------------------------------------- /test/cases/implements.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/implements.json -------------------------------------------------------------------------------- /test/cases/implements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/implements.ts -------------------------------------------------------------------------------- /test/cases/index_signature.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/index_signature.json -------------------------------------------------------------------------------- /test/cases/index_signature.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/index_signature.ts -------------------------------------------------------------------------------- /test/cases/indexed_access.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/indexed_access.json -------------------------------------------------------------------------------- /test/cases/indexed_access.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/indexed_access.ts -------------------------------------------------------------------------------- /test/cases/infer_field.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/infer_field.json -------------------------------------------------------------------------------- /test/cases/infer_field.ts: -------------------------------------------------------------------------------- 1 | export class X { 2 | static y = 0 3 | } 4 | -------------------------------------------------------------------------------- /test/cases/infer_function_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/infer_function_type.json -------------------------------------------------------------------------------- /test/cases/infer_function_type.ts: -------------------------------------------------------------------------------- 1 | function f(a: T) { 2 | return () => a 3 | } 4 | 5 | export const x = f(1) 6 | -------------------------------------------------------------------------------- /test/cases/infer_instantiation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/infer_instantiation.json -------------------------------------------------------------------------------- /test/cases/infer_instantiation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/infer_instantiation.ts -------------------------------------------------------------------------------- /test/cases/infer_object_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/infer_object_type.json -------------------------------------------------------------------------------- /test/cases/infer_object_type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/infer_object_type.ts -------------------------------------------------------------------------------- /test/cases/inline_generic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/inline_generic.json -------------------------------------------------------------------------------- /test/cases/inline_generic.ts: -------------------------------------------------------------------------------- 1 | export function foo(a: M) {} 2 | 3 | type M = {value: T} 4 | -------------------------------------------------------------------------------- /test/cases/inline_reference.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/inline_reference.json -------------------------------------------------------------------------------- /test/cases/inline_reference.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/inline_reference.ts -------------------------------------------------------------------------------- /test/cases/internal.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/internal.json -------------------------------------------------------------------------------- /test/cases/internal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/internal.ts -------------------------------------------------------------------------------- /test/cases/internal_before_constructor.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/internal_before_constructor.json -------------------------------------------------------------------------------- /test/cases/internal_before_constructor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/internal_before_constructor.ts -------------------------------------------------------------------------------- /test/cases/internal_comments.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/internal_comments.json -------------------------------------------------------------------------------- /test/cases/internal_comments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/internal_comments.ts -------------------------------------------------------------------------------- /test/cases/internal_extends_external.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/internal_extends_external.json -------------------------------------------------------------------------------- /test/cases/internal_extends_external.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/internal_extends_external.ts -------------------------------------------------------------------------------- /test/cases/iterator_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/iterator_type.json -------------------------------------------------------------------------------- /test/cases/iterator_type.ts: -------------------------------------------------------------------------------- 1 | export const foo: Iterator = null as any 2 | -------------------------------------------------------------------------------- /test/cases/keyof.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/keyof.json -------------------------------------------------------------------------------- /test/cases/keyof.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/keyof.ts -------------------------------------------------------------------------------- /test/cases/linebreaks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/linebreaks.json -------------------------------------------------------------------------------- /test/cases/linebreaks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/linebreaks.ts -------------------------------------------------------------------------------- /test/cases/literal_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/literal_type.json -------------------------------------------------------------------------------- /test/cases/literal_type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/literal_type.ts -------------------------------------------------------------------------------- /test/cases/map_index_signature.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/map_index_signature.json -------------------------------------------------------------------------------- /test/cases/map_index_signature.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/map_index_signature.ts -------------------------------------------------------------------------------- /test/cases/mapped_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/mapped_type.json -------------------------------------------------------------------------------- /test/cases/mapped_type.ts: -------------------------------------------------------------------------------- 1 | export type T = {[K in keyof A]: B} 2 | -------------------------------------------------------------------------------- /test/cases/mapped_type_type_param.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/mapped_type_type_param.json -------------------------------------------------------------------------------- /test/cases/mapped_type_type_param.ts: -------------------------------------------------------------------------------- 1 | export type Full = {[K in keyof T]-?: T[K]} 2 | -------------------------------------------------------------------------------- /test/cases/noninternal_prop_in_internal_constructor.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/noninternal_prop_in_internal_constructor.json -------------------------------------------------------------------------------- /test/cases/noninternal_prop_in_internal_constructor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/noninternal_prop_in_internal_constructor.ts -------------------------------------------------------------------------------- /test/cases/object_pattern.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/object_pattern.json -------------------------------------------------------------------------------- /test/cases/object_pattern.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/object_pattern.ts -------------------------------------------------------------------------------- /test/cases/objtype_strindex.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/objtype_strindex.json -------------------------------------------------------------------------------- /test/cases/objtype_strindex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/objtype_strindex.ts -------------------------------------------------------------------------------- /test/cases/optional_prop_argument.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/optional_prop_argument.json -------------------------------------------------------------------------------- /test/cases/optional_prop_argument.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/optional_prop_argument.ts -------------------------------------------------------------------------------- /test/cases/optionalprop.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/optionalprop.json -------------------------------------------------------------------------------- /test/cases/optionalprop.ts: -------------------------------------------------------------------------------- 1 | export interface I { 2 | a: number, 3 | b?: string 4 | } 5 | -------------------------------------------------------------------------------- /test/cases/overload.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/overload.json -------------------------------------------------------------------------------- /test/cases/overload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/overload.ts -------------------------------------------------------------------------------- /test/cases/param_prop.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/param_prop.json -------------------------------------------------------------------------------- /test/cases/param_prop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/param_prop.ts -------------------------------------------------------------------------------- /test/cases/parameterized_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/parameterized_type.json -------------------------------------------------------------------------------- /test/cases/parameterized_type.ts: -------------------------------------------------------------------------------- 1 | export function makeID(): (x: T) => T {} 2 | -------------------------------------------------------------------------------- /test/cases/parenthesized_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/parenthesized_type.json -------------------------------------------------------------------------------- /test/cases/parenthesized_type.ts: -------------------------------------------------------------------------------- 1 | export type A = (number) 2 | -------------------------------------------------------------------------------- /test/cases/private.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/private.json -------------------------------------------------------------------------------- /test/cases/private.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/private.ts -------------------------------------------------------------------------------- /test/cases/private_comments.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/private_comments.json -------------------------------------------------------------------------------- /test/cases/private_comments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/private_comments.ts -------------------------------------------------------------------------------- /test/cases/readonlyarray.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/readonlyarray.json -------------------------------------------------------------------------------- /test/cases/readonlyarray.ts: -------------------------------------------------------------------------------- 1 | export let x: readonly number[] = [] 2 | -------------------------------------------------------------------------------- /test/cases/reexport.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/reexport.json -------------------------------------------------------------------------------- /test/cases/reexport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/reexport.ts -------------------------------------------------------------------------------- /test/cases/references.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/references.json -------------------------------------------------------------------------------- /test/cases/references.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/references.ts -------------------------------------------------------------------------------- /test/cases/rest_param.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/rest_param.json -------------------------------------------------------------------------------- /test/cases/rest_param.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/rest_param.ts -------------------------------------------------------------------------------- /test/cases/static_field.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/static_field.json -------------------------------------------------------------------------------- /test/cases/static_field.ts: -------------------------------------------------------------------------------- 1 | export class X { 2 | static empty: X 3 | } 4 | -------------------------------------------------------------------------------- /test/cases/string_index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/string_index.json -------------------------------------------------------------------------------- /test/cases/string_index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/string_index.ts -------------------------------------------------------------------------------- /test/cases/subclass_methods.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/subclass_methods.json -------------------------------------------------------------------------------- /test/cases/subclass_methods.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/subclass_methods.ts -------------------------------------------------------------------------------- /test/cases/symbolproperty.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/symbolproperty.json -------------------------------------------------------------------------------- /test/cases/symbolproperty.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/symbolproperty.ts -------------------------------------------------------------------------------- /test/cases/this_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/this_type.json -------------------------------------------------------------------------------- /test/cases/this_type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/this_type.ts -------------------------------------------------------------------------------- /test/cases/true_false_literals.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/true_false_literals.json -------------------------------------------------------------------------------- /test/cases/true_false_literals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/true_false_literals.ts -------------------------------------------------------------------------------- /test/cases/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/tsconfig.json -------------------------------------------------------------------------------- /test/cases/tuple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/tuple.json -------------------------------------------------------------------------------- /test/cases/tuple.ts: -------------------------------------------------------------------------------- 1 | export const x: [number, boolean] = [1, true] 2 | -------------------------------------------------------------------------------- /test/cases/type_alias.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/type_alias.json -------------------------------------------------------------------------------- /test/cases/type_alias.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/type_alias.ts -------------------------------------------------------------------------------- /test/cases/type_literal.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/type_literal.json -------------------------------------------------------------------------------- /test/cases/type_literal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/type_literal.ts -------------------------------------------------------------------------------- /test/cases/type_param.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/type_param.json -------------------------------------------------------------------------------- /test/cases/type_param.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/type_param.ts -------------------------------------------------------------------------------- /test/cases/typeof.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/typeof.json -------------------------------------------------------------------------------- /test/cases/typeof.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/typeof.ts -------------------------------------------------------------------------------- /test/cases/union_inference.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/union_inference.json -------------------------------------------------------------------------------- /test/cases/union_inference.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/union_inference.ts -------------------------------------------------------------------------------- /test/cases/union_order.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/union_order.json -------------------------------------------------------------------------------- /test/cases/union_order.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/union_order.ts -------------------------------------------------------------------------------- /test/cases/void.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/void.json -------------------------------------------------------------------------------- /test/cases/void.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/void.ts -------------------------------------------------------------------------------- /test/cases/void_union.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/void_union.json -------------------------------------------------------------------------------- /test/cases/void_union.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/cases/void_union.ts -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/test/test.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrianheine/gettypes/HEAD/tsconfig.json --------------------------------------------------------------------------------