How to use the abap-adt-api.isGroupType function in abap-adt-api

To help you get started, we’ve selected a few abap-adt-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github marcellourbani / vscode_abap_remote_fs / client / src / adt / operations / AdtObjectCreator.ts View on Github external
private async validateObject(objDetails: NewObjectOptions) {
    let validateOptions: ValidateOptions
    if (isGroupType(objDetails.objtype))
      validateOptions = {
        description: objDetails.description,
        fugrname: objDetails.parentName,
        objname: objDetails.name,
        objtype: objDetails.objtype as GroupTypeIds
      }
    else if (objDetails.objtype === PACKAGE && hasPackageOptions(objDetails)) {
      validateOptions = {
        description: objDetails.description,
        objname: objDetails.name,
        objtype: objDetails.objtype as PackageTypeId,
        packagename: objDetails.parentName,
        swcomp: objDetails.swcomp,
        packagetype: objDetails.packagetype,
        transportLayer: objDetails.transportLayer
      }