14 lines
272 B
JavaScript
14 lines
272 B
JavaScript
|
export class Implementations {
|
||
|
constructor(impOrImps) {
|
||
|
if (Array.isArray(impOrImps)) {
|
||
|
this.matchers = impOrImps
|
||
|
} else this.matchers = [impOrImps]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class ImplementationsGenerator {
|
||
|
constructor(f) {
|
||
|
this.generate = f
|
||
|
}
|
||
|
}
|