import { BaseMapping } from "./BaseMapping" ; import type { Disposable } from ".." ; /**
 *  Mapping 類別是一對一用途的  BaseMapping 實作類別。
 *
 * 它的 key 就等同於是 source，而 dtor 條件則是值被 disposed。
  @ shrewd export class Mapping < K , V extends Disposable > extends BaseMapping < K , K , V > { constructor ( source , constructor ) { super ( source , k => k , constructor , ( _ , v ) => v . $disposed ) ; } }