<commit_before>import { defaultMetadataStorage } from '../storage';
import { TypeMetadata } from '../metadata/TypeMetadata';
import { TypeHelpOptions, TypeOptions } from '../metadata/ExposeExcludeOptions';

/**
 * Specifies a type of the property.
 * The given TypeFunction can return a constructor. A discriminator can be given in the options.
 */
export function Type(typeFunction: (type?: TypeHelpOptions) => Function, options: TypeOptions = {}) {
  return function (target: any, key: string): void {
    const type = (Reflect as any).getMetadata('design:type', target, key);
    const metadata = new TypeMetadata(target.constructor, key, type, typeFunction, options);
    defaultMetadataStorage.addTypeMetadata(metadata);
  };
}<commit_msg>fix: restore original call signature for Type decorator<commit_after>import { defaultMetadataStorage } from '../storage';
import { TypeMetadata } from '../metadata/TypeMetadata';
import { TypeHelpOptions, TypeOptions } from '../metadata/ExposeExcludeOptions';

/**
 * Specifies a type of the property.
 * The given TypeFunction can return a constructor. A discriminator can be given in the options.
 */
export function Type(typeFunction?: (type?: TypeHelpOptions) => Function, options: TypeOptions = {}) {
  return function (target: any, key: string): void {
    const type = (Reflect as any).getMetadata('design:type', target, key);
    const metadata = new TypeMetadata(target.constructor, key, type, typeFunction, options);
    defaultMetadataStorage.addTypeMetadata(metadata);
  };
}
{'fraction_non_alphanumeric': 0.11887655127367734, 'fraction_numerical': 0.0, 'mean_word_length': 5.079365079365079, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3809015', 'n_tokens_mistral': 386, 'n_tokens_neox': 386, 'n_words': 137}