@grapi/server
Version:
Grapi Schema Generator For GraphQL Server
28 lines (27 loc) • 625 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class SdlScalarType {
typeDef;
name;
description;
directives;
constructor({ name, description, directives, typeDef, }) {
this.name = name;
this.description = description;
this.directives = directives || {};
this.typeDef = typeDef;
}
getName() {
return this.name;
}
getDescription() {
return this.description;
}
getDirectives() {
return this.directives;
}
getTypeDef() {
return this.typeDef;
}
}
exports.default = SdlScalarType;