node-dextrin - v0.4.0
    Preparing search index...

    Function merge

    • own and drops merged onto bases' fields. A refusal throws an Error whose message says why in words; the compiler gives it its category.

      Parameters

      • bases: FoundBase[]
      • own: export=[]
      • drops: string[]
      • Optionalsame: (a: export=, b: export=) => boolean = dxnEquals

        whether two fields of one name from two bases are the same field; the compiler compares them with their types in place.

      Returns export=[]

      const base = {kind: 'extends', name: 'P', fields: [new Field({name: 'a'}), new Field({name: 'b', required: false})]};
      merge([base], [new Field({name: 'c'})], ['b']).map((f) => f.name);
      // => ['a', 'c']