{"size": 431, "ext": "js", "max_stars_repo_path": "src/types/object.js", "max_stars_repo_name": "zabkwak/runtime-type", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/types/object.js", "max_issues_repo_name": "zabkwak/runtime-type", "max_issues_repo_issues_event_min_datetime": "2021-06-03T13:37:21.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-03T13:37:21.000Z", "max_forks_repo_path": "src/types/object.js", "max_forks_repo_name": "zabkwak/runtime-type", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 14.8620689655, "max_line_length": 46, "alphanum_fraction": 0.5522041763}
import Error from 'smart-error';

import Base from './base/nullable';

export default class ObjectType extends Base {

    cast(value) {
        if (typeof value !== 'object') {
            this._throwInvalidCast(value);
        }
        return value;
	}
	
	getName() {
		return 'ObjectType';
	}

    toString() {
        return 'object';
	}
	
	getTSType() {
		return 'any';
	}

    _getTypeOf() {
        return 'object';
    }
}