@vuedoc/parser
Version:
Generate a JSON documentation for a Vue file
14 lines • 577 B
JavaScript
import { Type } from '../lib/Enum.js';
import { AbstractCategorizeEntry } from './AbstractCategorizeEntry.js';
import { toKebabCase } from '@b613/utils/lib/string.js';
export class PropEntry extends AbstractCategorizeEntry {
constructor({ name, type = Type.unknown, defaultValue, required = false, describeModel = false }) {
super('prop');
this.name = toKebabCase(name);
this.type = type;
this.default = defaultValue;
this.required = required;
this.describeModel = describeModel;
}
}
//# sourceMappingURL=PropEntry.js.map