lib/src/service/FakeCanonical.ts
garrettmills 1d5056b753
All checks were successful
continuous-integration/drone/push Build is passing
Setup eslint and enforce rules
2021-06-02 22:36:25 -05:00

12 lines
358 B
TypeScript

import {Canonical} from './Canonical'
/**
* Canonical class used for faking canonical units. Here, the canonical resolver
* is registered with the global service, but no files are loaded from the filesystem.
*/
export class FakeCanonical<T> extends Canonical<T> {
public async up(): Promise<void> {
this.canon.registerCanonical(this)
}
}