"use strict";
// Copyright 2017-2020 @polkadot/types authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Null_1 = __importDefault(require("./Null"));
/**
 * @name Unconstructable
 * @description
 * A type that should not be constructed
 */
class Unconstructable extends Null_1.default {
    constructor(registry) {
        super(registry);
        throw new Error('Unconstructable should not be constructed, it is only a placeholder for compatibility');
    }
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    static with(typeDef) {
        return class extends Unconstructable {
        };
    }
}
exports.default = Unconstructable;
