@abaplint/runtime 2.0.66 → 2.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ export interface ICreateDataOptions {
8
8
  type?: PointerType;
9
9
  typeHandle?: ABAPObject;
10
10
  likeLineOf?: FieldSymbol | Table;
11
+ like?: any;
11
12
  }
12
13
  export declare function createData(target: DataReference, options?: ICreateDataOptions): void;
13
14
  export {};
@@ -56,6 +56,12 @@ function createData(target, options) {
56
56
  }
57
57
  target.assign((0, clone_1.clone)(options.likeLineOf.getRowType()));
58
58
  }
59
+ else if (options === null || options === void 0 ? void 0 : options.like) {
60
+ if (options.like instanceof types_1.FieldSymbol) {
61
+ options.like = options.like.getPointer();
62
+ }
63
+ target.assign((0, clone_1.clone)(options.like));
64
+ }
59
65
  else {
60
66
  target.assign((0, clone_1.clone)(target.getType()));
61
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.0.66",
3
+ "version": "2.0.67",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",