Files
patatapack2-distribution/src/resolver/baseresolver.ts
Daniel Scalzi 064a664687 Externalize spec typings, use eslint.
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.
2020-01-26 01:01:07 -05:00

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
}