Tslint is deprecated, as such we have moved to eslint. Linted the project with more stringent rules. The configuration will be changed as we figure out which rules we should keep.
18 lines
479 B
TypeScript
18 lines
479 B
TypeScript
import { Module } from 'helios-distribution-types'
|
|
import { VersionSegmented } from '../util/VersionSegmented'
|
|
import { Resolver } from './resolver'
|
|
|
|
export abstract class BaseResolver implements Resolver, VersionSegmented {
|
|
|
|
constructor(
|
|
protected absoluteRoot: string,
|
|
protected relativeRoot: string,
|
|
protected baseUrl: string
|
|
) {}
|
|
|
|
public abstract getModule(): Promise<Module>
|
|
|
|
public abstract isForVersion(version: string): boolean
|
|
|
|
}
|